C# 클래스 NProxy.Core.Internal.Reflection.Emit.ILGeneratorExtensions

Provides ILGenerator extension methods.
파일 보기 프로젝트 열기: mtamme/NProxy

공개 메소드들

메소드 설명
EmitBox ( this ilGenerator, Type type ) : void

Converts a value type to an object reference.

EmitCall ( this ilGenerator, MethodInfo methodInfo ) : void

Calls the specified method.

EmitLoadArgument ( this ilGenerator, int index ) : void

Loads an argument onto the stack.

EmitLoadArguments ( this ilGenerator, int offset, int count ) : void

Loads the arguments onto the stack.

EmitLoadIndirect ( this ilGenerator, Type type ) : void

Loads a value from an address.

EmitLoadValue ( this ilGenerator, int value ) : void

Loads a value onto the stack.

EmitStoreIndirect ( this ilGenerator, Type type ) : void

Stores a value to an address.

EmitUnbox ( this ilGenerator, Type type ) : void

Converts the boxed representation of a specified type to its unboxed form.

NewArray ( this ilGenerator, Type elementType, int size ) : LocalBuilder

Creates a new array of the specified element type.

ThrowException ( this ilGenerator, Type exceptionType, string message ) : void

Throws a new exception of the specified exception type.

메소드 상세

EmitBox() 공개 정적인 메소드

Converts a value type to an object reference.
public static EmitBox ( this ilGenerator, Type type ) : void
ilGenerator this The intermediate language generator.
type System.Type The type.
리턴 void

EmitCall() 공개 정적인 메소드

Calls the specified method.
public static EmitCall ( this ilGenerator, MethodInfo methodInfo ) : void
ilGenerator this The intermediate language generator.
methodInfo System.Reflection.MethodInfo The method information.
리턴 void

EmitLoadArgument() 공개 정적인 메소드

Loads an argument onto the stack.
public static EmitLoadArgument ( this ilGenerator, int index ) : void
ilGenerator this The intermediate language generator.
index int The argument index.
리턴 void

EmitLoadArguments() 공개 정적인 메소드

Loads the arguments onto the stack.
public static EmitLoadArguments ( this ilGenerator, int offset, int count ) : void
ilGenerator this The intermediate language generator.
offset int The argument offset.
count int The argument count.
리턴 void

EmitLoadIndirect() 공개 정적인 메소드

Loads a value from an address.
public static EmitLoadIndirect ( this ilGenerator, Type type ) : void
ilGenerator this The intermediate language generator.
type System.Type The type.
리턴 void

EmitLoadValue() 공개 정적인 메소드

Loads a value onto the stack.
public static EmitLoadValue ( this ilGenerator, int value ) : void
ilGenerator this The intermediate language generator.
value int The value.
리턴 void

EmitStoreIndirect() 공개 정적인 메소드

Stores a value to an address.
public static EmitStoreIndirect ( this ilGenerator, Type type ) : void
ilGenerator this The intermediate language generator.
type System.Type The type.
리턴 void

EmitUnbox() 공개 정적인 메소드

Converts the boxed representation of a specified type to its unboxed form.
public static EmitUnbox ( this ilGenerator, Type type ) : void
ilGenerator this The intermediate language generator.
type System.Type The type.
리턴 void

NewArray() 공개 정적인 메소드

Creates a new array of the specified element type.
public static NewArray ( this ilGenerator, Type elementType, int size ) : LocalBuilder
ilGenerator this The intermediate language generator.
elementType System.Type The element type.
size int The array size.
리턴 System.Reflection.Emit.LocalBuilder

ThrowException() 공개 정적인 메소드

Throws a new exception of the specified exception type.
public static ThrowException ( this ilGenerator, Type exceptionType, string message ) : void
ilGenerator this The intermediate language generator.
exceptionType System.Type The exception type.
message string The error message.
리턴 void