C# Класс NProxy.Core.Internal.Reflection.Emit.ILGeneratorExtensions

Provides ILGenerator extension methods.
Показать файл Открыть проект

Открытые методы

Метод Описание
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