C# Class System.Reflection.Emit.DynamicILGenerator

Inheritance: ILGenerator
Mostrar archivo Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
BeginCatchBlock ( Type exceptionType ) : void
BeginExceptFilterBlock ( ) : void
BeginExceptionBlock ( ) : Label
BeginFaultBlock ( ) : void
BeginFinallyBlock ( ) : void
BeginScope ( ) : void
DeclareLocal ( Type localType, bool pinned ) : LocalBuilder
Emit ( OpCode opcode, FieldInfo field ) : void
Emit ( OpCode opcode, MethodInfo meth ) : void
Emit ( OpCode opcode, RuntimeFieldHandle fieldHandle ) : void
Emit ( OpCode opcode, RuntimeMethodHandle meth ) : void
Emit ( OpCode opcode, RuntimeMethodHandle meth, RuntimeTypeHandle typeContext ) : void
Emit ( OpCode opcode, RuntimeTypeHandle typeHandle ) : void
Emit ( OpCode opcode, SignatureHelper signature ) : void
Emit ( OpCode opcode, String str ) : void
Emit ( OpCode opcode, Type type ) : void
EmitCall ( OpCode opcode, MethodInfo methodInfo, Type optionalParameterTypes ) : void
EmitCalli ( OpCode opcode, CallingConvention unmanagedCallConv, Type returnType, Type parameterTypes ) : void
EmitCalli ( OpCode opcode, CallingConventions callingConvention, Type returnType, Type parameterTypes, Type optionalParameterTypes ) : void
EndExceptionBlock ( ) : void
EndScope ( ) : void
MarkSequencePoint ( ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn ) : void
UsingNamespace ( String ns ) : void

Private Methods

Method Description
AddSignature ( byte sig ) : int
AddStringLiteral ( String s ) : int
DynamicILGenerator ( DynamicMethod method, byte methodSignature, int size ) : System
Emit ( OpCode opcode, ConstructorInfo con ) : void
GetCallableMethod ( void module ) : RuntimeMethodHandle
GetMaxStackSize ( ) : int
GetMemberRefSignature ( CallingConventions call, Type returnType, Type parameterTypes, Type optionalParameterTypes ) : SignatureHelper
GetMemberRefToken ( MethodBase methodInfo, Type optionalParameterTypes ) : int

Method Details

BeginCatchBlock() public method

public BeginCatchBlock ( Type exceptionType ) : void
exceptionType System.Type
return void

BeginExceptFilterBlock() public method

public BeginExceptFilterBlock ( ) : void
return void

BeginExceptionBlock() public method

public BeginExceptionBlock ( ) : Label
return Label

BeginFaultBlock() public method

public BeginFaultBlock ( ) : void
return void

BeginFinallyBlock() public method

public BeginFinallyBlock ( ) : void
return void

BeginScope() public method

public BeginScope ( ) : void
return void

DeclareLocal() public method

public DeclareLocal ( Type localType, bool pinned ) : LocalBuilder
localType System.Type
pinned bool
return LocalBuilder

Emit() public method

public Emit ( OpCode opcode, FieldInfo field ) : void
opcode OpCode
field System.Reflection.FieldInfo
return void

Emit() public method

public Emit ( OpCode opcode, MethodInfo meth ) : void
opcode OpCode
meth System.Reflection.MethodInfo
return void

Emit() public method

public Emit ( OpCode opcode, RuntimeFieldHandle fieldHandle ) : void
opcode OpCode
fieldHandle System.RuntimeFieldHandle
return void

Emit() public method

public Emit ( OpCode opcode, RuntimeMethodHandle meth ) : void
opcode OpCode
meth System.RuntimeMethodHandle
return void

Emit() public method

public Emit ( OpCode opcode, RuntimeMethodHandle meth, RuntimeTypeHandle typeContext ) : void
opcode OpCode
meth System.RuntimeMethodHandle
typeContext System.RuntimeTypeHandle
return void

Emit() public method

public Emit ( OpCode opcode, RuntimeTypeHandle typeHandle ) : void
opcode OpCode
typeHandle System.RuntimeTypeHandle
return void

Emit() public method

public Emit ( OpCode opcode, SignatureHelper signature ) : void
opcode OpCode
signature SignatureHelper
return void

Emit() public method

public Emit ( OpCode opcode, String str ) : void
opcode OpCode
str String
return void

Emit() public method

public Emit ( OpCode opcode, Type type ) : void
opcode OpCode
type System.Type
return void

EmitCall() public method

public EmitCall ( OpCode opcode, MethodInfo methodInfo, Type optionalParameterTypes ) : void
opcode OpCode
methodInfo System.Reflection.MethodInfo
optionalParameterTypes System.Type
return void

EmitCalli() public method

public EmitCalli ( OpCode opcode, CallingConvention unmanagedCallConv, Type returnType, Type parameterTypes ) : void
opcode OpCode
unmanagedCallConv CallingConvention
returnType System.Type
parameterTypes System.Type
return void

EmitCalli() public method

public EmitCalli ( OpCode opcode, CallingConventions callingConvention, Type returnType, Type parameterTypes, Type optionalParameterTypes ) : void
opcode OpCode
callingConvention CallingConventions
returnType System.Type
parameterTypes System.Type
optionalParameterTypes System.Type
return void

EndExceptionBlock() public method

public EndExceptionBlock ( ) : void
return void

EndScope() public method

public EndScope ( ) : void
return void

MarkSequencePoint() public method

public MarkSequencePoint ( ISymbolDocumentWriter document, int startLine, int startColumn, int endLine, int endColumn ) : void
document ISymbolDocumentWriter
startLine int
startColumn int
endLine int
endColumn int
return void

UsingNamespace() public method

public UsingNamespace ( String ns ) : void
ns String
return void