C# 클래스 Monobjc.Generators.ClassGenerator

Code generator that produces class proxies.
상속: CodeGenerator
파일 보기 프로젝트 열기: Monobjc/monobjc 1 사용 예제들

공개 메소드들

메소드 설명
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