C# Class Monobjc.Generators.BlockGenerator

Mostrar archivo Open project: Monobjc/monobjc Class Usage Examples

Public Methods

Method Description
BlockGenerator ( DynamicAssembly assembly, bool is64Bits ) : System

Initializes a new instance of the BlockGenerator class.

DefineBlockProxy ( Type delegateType ) : Type

Defines a block proxy to bridge the given type of delegate.

Private Methods

Method Description
EmitInvokerBody ( ILGenerator generator, MethodInfo methodInfo, Type returnType, Type nativeReturnType, Type parameterTypes, Type nativeParameterTypes ) : void
GetUniqueName ( Type returnType, Type parameterTypes ) : String

Generate a unique name for the block proxy.

Method Details

BlockGenerator() public method

Initializes a new instance of the BlockGenerator class.
public BlockGenerator ( DynamicAssembly assembly, bool is64Bits ) : System
assembly DynamicAssembly The assembly.
is64Bits bool
return System

DefineBlockProxy() public method

Defines a block proxy to bridge the given type of delegate.
public DefineBlockProxy ( Type delegateType ) : Type
delegateType System.Type Type of the delegate.
return System.Type