C# Класс Monobjc.Generators.ClassGenerator

Code generator that produces class proxies.
Наследование: CodeGenerator
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ClassGenerator ( DynamicAssembly assembly, bool is64Bits ) : System

Initializes a new instance of the ClassGenerator class.

DefineClassProxy ( Type type, IEnumerable instanceMethods, IEnumerable classMethods ) : Type

TODO: Doc

Приватные методы

Метод Описание
DefineDelegate ( TypeBuilder typeBuilder, MethodBase 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.

EmitProxyMethodBodyForInstanceMethod ( ILGenerator generator, MethodTuple methodTuple, Type returnType, Type nativeReturnType, Type parameterTypes, Type nativeParameterTypes ) : void
EmitProxyMethodBodyForStaticMethod ( ILGenerator generator, MethodTuple methodTuple, Type returnType, Type nativeReturnType, Type parameterTypes, Type nativeParameterTypes ) : void

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

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

Initializes a new instance of the ClassGenerator class.
public ClassGenerator ( DynamicAssembly assembly, bool is64Bits ) : System
assembly DynamicAssembly The assembly.
is64Bits bool
Результат System

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

TODO: Doc
public DefineClassProxy ( Type type, IEnumerable instanceMethods, IEnumerable classMethods ) : Type
type System.Type
instanceMethods IEnumerable
classMethods IEnumerable
Результат System.Type