C# 클래스 System.Xml.Xsl.Runtime.XmlExtensionFunction

This internal class contains methods that allow binding to extension functions and invoking them.
파일 보기 프로젝트 열기: gbarnett/shared-source-cli-2.0 1 사용 예제들

공개 메소드들

메소드 설명
Bind ( ) : void

Bind to the CLR type specified in the Init() call. If a matching method cannot be found, throw an exception.

CanBind ( ) : bool

Return true if the CLR type specified in the Init() call has a matching method.

Equals ( object other ) : bool

Return true if this XmlExtensionFunction has the same values as another XmlExtensionFunction.

GetClrArgumentType ( int index ) : Type

Once Bind has been successfully called, the Clr type of each argument can be accessed. Note that this may be different than Method.GetParameterInfo().ParameterType.

GetHashCode ( ) : int

Return this object's hash code, previously computed for performance.

GetXmlArgumentType ( int index ) : XmlQueryType

Once Bind has been successfully called, the inferred Xml types of the arguments can be accessed.

Init ( string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags ) : void

Initialize, but do not bind.

Invoke ( object extObj, object args ) : object

Convert the incoming arguments to an array of CLR objects, and then invoke the external function on the "extObj" object instance.

XmlExtensionFunction ( ) : System

Constructor.

XmlExtensionFunction ( string name, string namespaceUri, MethodInfo meth ) : System

Constructor (directly binds to passed MethodInfo).

XmlExtensionFunction ( string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags ) : System

Constructor.

비공개 메소드들

메소드 설명
Bind ( MethodInfo meth ) : void

Bind to the specified MethodInfo.

GetClrType ( Type clrType ) : Type

1. Map enumerations to the underlying integral type. 2. Throw an exception if the type is ByRef

InferXmlType ( Type clrType ) : XmlQueryType

Infer an Xml type from a Clr type using Xslt infererence rules

메소드 상세

Bind() 공개 메소드

Bind to the CLR type specified in the Init() call. If a matching method cannot be found, throw an exception.
public Bind ( ) : void
리턴 void

CanBind() 공개 메소드

Return true if the CLR type specified in the Init() call has a matching method.
public CanBind ( ) : bool
리턴 bool

Equals() 공개 메소드

Return true if this XmlExtensionFunction has the same values as another XmlExtensionFunction.
public Equals ( object other ) : bool
other object
리턴 bool

GetClrArgumentType() 공개 메소드

Once Bind has been successfully called, the Clr type of each argument can be accessed. Note that this may be different than Method.GetParameterInfo().ParameterType.
public GetClrArgumentType ( int index ) : Type
index int
리턴 System.Type

GetHashCode() 공개 메소드

Return this object's hash code, previously computed for performance.
public GetHashCode ( ) : int
리턴 int

GetXmlArgumentType() 공개 메소드

Once Bind has been successfully called, the inferred Xml types of the arguments can be accessed.
public GetXmlArgumentType ( int index ) : XmlQueryType
index int
리턴 XmlQueryType

Init() 공개 메소드

Initialize, but do not bind.
public Init ( string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags ) : void
name string
namespaceUri string
numArgs int
objectType System.Type
flags BindingFlags
리턴 void

Invoke() 공개 메소드

Convert the incoming arguments to an array of CLR objects, and then invoke the external function on the "extObj" object instance.
public Invoke ( object extObj, object args ) : object
extObj object
args object
리턴 object

XmlExtensionFunction() 공개 메소드

Constructor.
public XmlExtensionFunction ( ) : System
리턴 System

XmlExtensionFunction() 공개 메소드

Constructor (directly binds to passed MethodInfo).
public XmlExtensionFunction ( string name, string namespaceUri, MethodInfo meth ) : System
name string
namespaceUri string
meth System.Reflection.MethodInfo
리턴 System

XmlExtensionFunction() 공개 메소드

Constructor.
public XmlExtensionFunction ( string name, string namespaceUri, int numArgs, Type objectType, BindingFlags flags ) : System
name string
namespaceUri string
numArgs int
objectType System.Type
flags BindingFlags
리턴 System