C# Class Monobjc.Generators.CategoryGenerator

Show file Open project: Monobjc/monobjc Class Usage Examples

Public Methods

Method Description
CategoryGenerator ( DynamicAssembly assembly, bool is64Bits ) : System
DefineCategoryProxy ( Type type, IEnumerable extensionMethods ) : Type

TODO: Doc

Private Methods

Method Description
DefineDelegate ( TypeBuilder typeBuilder, MethodInfo methodInfo, ConstructorBuilder &constructorBuilder ) : Type

Defines an inner Delegate type for the method to be invoked from Objective-C runtime.

DefineProxyMethod ( TypeBuilder typeBuilder, MethodTuple methodTuple ) : MethodBuilder

Defines a proxy method that is called from Objective-C runtime. This method retrieves the targeted managed instance and passes the parameters.

EmitProxyMethodBodyForExtensionMethod ( ILGenerator generator, MethodTuple methodTuple, Type targetType, Type returnType, Type nativeReturnType, Type parameterTypes, Type nativeParameterTypes ) : void

Method Details

CategoryGenerator() public method

public CategoryGenerator ( DynamicAssembly assembly, bool is64Bits ) : System
assembly DynamicAssembly
is64Bits bool
return System

DefineCategoryProxy() public method

TODO: Doc
public DefineCategoryProxy ( Type type, IEnumerable extensionMethods ) : Type
type System.Type
extensionMethods IEnumerable
return System.Type