C# Class System.Xml.Xsl.IlGen.XmlILModule

Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
BakeMethods ( ) : void

Once all methods have been defined, CreateModule must be called in order to "bake" the methods within this module.

CreateDelegate ( string name, Type typDelegate ) : Delegate

Wrap a delegate around a MethodInfo of the specified name and type and return it.

DefineField ( string fieldName, Type type ) : FieldInfo

Define private static field with the specified name and value.

DefineInitializedData ( string name, byte data ) : FieldInfo

Define ginitialized data field with the specified name and value.

DefineMethod ( string name, Type returnType, Type paramTypes, string paramNames, XmlILMethodAttributes xmlAttrs ) : MethodInfo

Define a method in this module with the specified name and parameters.

DefineMethodBody ( MethodBase methInfo ) : ILGenerator

Get an XmlILGenerator that can be used to generate the body of the specified method.

DefineTypeInitializer ( ) : ConstructorInfo

Define static constructor for this type.

FindMethod ( string name ) : MethodInfo

Find a MethodInfo of the specified name and return it. Return null if no such method exists.

XmlILModule ( TypeBuilder typeBldr ) : System.Collections
XmlILModule ( bool useLRE, bool emitSymbols ) : System.Collections

Private Methods

Method Description
CreateAssemblyName ( ) : AssemblyName

Define unique assembly name (within AppDomain).

XmlILModule ( ) : System.Collections

Method Details

BakeMethods() public method

Once all methods have been defined, CreateModule must be called in order to "bake" the methods within this module.
public BakeMethods ( ) : void
return void

CreateDelegate() public method

Wrap a delegate around a MethodInfo of the specified name and type and return it.
public CreateDelegate ( string name, Type typDelegate ) : Delegate
name string
typDelegate Type
return Delegate

DefineField() public method

Define private static field with the specified name and value.
public DefineField ( string fieldName, Type type ) : FieldInfo
fieldName string
type Type
return System.Reflection.FieldInfo

DefineInitializedData() public method

Define ginitialized data field with the specified name and value.
public DefineInitializedData ( string name, byte data ) : FieldInfo
name string
data byte
return System.Reflection.FieldInfo

DefineMethod() public method

Define a method in this module with the specified name and parameters.
public DefineMethod ( string name, Type returnType, Type paramTypes, string paramNames, XmlILMethodAttributes xmlAttrs ) : MethodInfo
name string
returnType Type
paramTypes Type
paramNames string
xmlAttrs XmlILMethodAttributes
return System.Reflection.MethodInfo

DefineMethodBody() public static method

Get an XmlILGenerator that can be used to generate the body of the specified method.
public static DefineMethodBody ( MethodBase methInfo ) : ILGenerator
methInfo System.Reflection.MethodBase
return System.Reflection.Emit.ILGenerator

DefineTypeInitializer() public method

Define static constructor for this type.
public DefineTypeInitializer ( ) : ConstructorInfo
return System.Reflection.ConstructorInfo

FindMethod() public method

Find a MethodInfo of the specified name and return it. Return null if no such method exists.
public FindMethod ( string name ) : MethodInfo
name string
return System.Reflection.MethodInfo

XmlILModule() public method

public XmlILModule ( TypeBuilder typeBldr ) : System.Collections
typeBldr System.Reflection.Emit.TypeBuilder
return System.Collections

XmlILModule() public method

public XmlILModule ( bool useLRE, bool emitSymbols ) : System.Collections
useLRE bool
emitSymbols bool
return System.Collections