C# Класс Sigil.NonGeneric.Emit

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
LoadFunctionPointer ( MethodBuilder method, Type parameterTypes ) : Emit

Pushes a pointer to the given function onto the stack, as a native int. To resolve a method at runtime using an object, use LoadVirtualFunctionPointer instead. This method is provided as MethodBuilder cannot be inspected for parameter information at runtime. If the passed parameterTypes do not match the given method, the produced code will be invalid.

LoadFunctionPointer ( MethodInfo method ) : Emit

Pushes a pointer to the given function onto the stack, as a native int. To resolve a method at runtime using an object, use LoadVirtualFunctionPointer instead.

LoadVirtualFunctionPointer ( MethodBuilder method, Type parameterTypes ) : Emit

Pops an object reference off the stack, and pushes a pointer to the given method's implementation on that object. For static or non-virtual functions, use LoadFunctionPointer. This method is provided as MethodBuilder cannot be inspected for parameter information at runtime. If the passed parameterTypes do not match the given method, the produced code will be invalid.

LoadVirtualFunctionPointer ( MethodInfo method ) : Emit

Pops an object reference off the stack, and pushes a pointer to the given method's implementation on that object. For static or non-virtual functions, use LoadFunctionPointer

Описание методов

LoadFunctionPointer() публичный Метод

Pushes a pointer to the given function onto the stack, as a native int. To resolve a method at runtime using an object, use LoadVirtualFunctionPointer instead. This method is provided as MethodBuilder cannot be inspected for parameter information at runtime. If the passed parameterTypes do not match the given method, the produced code will be invalid.
public LoadFunctionPointer ( MethodBuilder method, Type parameterTypes ) : Emit
method MethodBuilder
parameterTypes Type
Результат Emit

LoadFunctionPointer() публичный Метод

Pushes a pointer to the given function onto the stack, as a native int. To resolve a method at runtime using an object, use LoadVirtualFunctionPointer instead.
public LoadFunctionPointer ( MethodInfo method ) : Emit
method MethodInfo
Результат Emit

LoadVirtualFunctionPointer() публичный Метод

Pops an object reference off the stack, and pushes a pointer to the given method's implementation on that object. For static or non-virtual functions, use LoadFunctionPointer. This method is provided as MethodBuilder cannot be inspected for parameter information at runtime. If the passed parameterTypes do not match the given method, the produced code will be invalid.
public LoadVirtualFunctionPointer ( MethodBuilder method, Type parameterTypes ) : Emit
method MethodBuilder
parameterTypes Type
Результат Emit

LoadVirtualFunctionPointer() публичный Метод

Pops an object reference off the stack, and pushes a pointer to the given method's implementation on that object. For static or non-virtual functions, use LoadFunctionPointer
public LoadVirtualFunctionPointer ( MethodInfo method ) : Emit
method MethodInfo
Результат Emit