C# Class Platform.Invoke.DefaultConstructorBuilder

Inheritance: IConstructorBuilder
Datei anzeigen Open project: GeirGrusom/PlatformInvoker

Public Methods

Method Description
DefaultConstructorBuilder ( string>.Func lookupFunctionName ) : System

GenerateConstructor ( TypeBuilder owner, Type interfaceType, IEnumerable methods, IEnumerable fields ) : ConstructorBuilder

Generates the constructor using the specified arguments.

Protected Methods

Method Description
DefineConstructor ( TypeBuilder owner, Type interfaceType ) : ConstructorBuilder

Creates the constructor builder.

EmitBegin ( TypeBuilder type, Type interfaceType, ILGenerator generator ) : void

Method is invoked at start of constructor generator.

EmitEnd ( TypeBuilder type, Type interfaceType, ILGenerator generator ) : void

Method is invoked at the end of the constructor generator.

Method Details

DefaultConstructorBuilder() public method

public DefaultConstructorBuilder ( string>.Func lookupFunctionName ) : System
lookupFunctionName string>.Func Supplies a function lookup name transformation. Set this to null to use the method name verbatim.
return System

DefineConstructor() protected method

Creates the constructor builder.
protected DefineConstructor ( TypeBuilder owner, Type interfaceType ) : ConstructorBuilder
owner System.Reflection.Emit.TypeBuilder Owner type to create constructor for.
interfaceType System.Type
return System.Reflection.Emit.ConstructorBuilder

EmitBegin() protected method

Method is invoked at start of constructor generator.
protected EmitBegin ( TypeBuilder type, Type interfaceType, ILGenerator generator ) : void
type System.Reflection.Emit.TypeBuilder
interfaceType System.Type
generator System.Reflection.Emit.ILGenerator
return void

EmitEnd() protected method

Method is invoked at the end of the constructor generator.
protected EmitEnd ( TypeBuilder type, Type interfaceType, ILGenerator generator ) : void
type System.Reflection.Emit.TypeBuilder
interfaceType System.Type
generator System.Reflection.Emit.ILGenerator
return void

GenerateConstructor() public method

Generates the constructor using the specified arguments.
public GenerateConstructor ( TypeBuilder owner, Type interfaceType, IEnumerable methods, IEnumerable fields ) : ConstructorBuilder
owner System.Reflection.Emit.TypeBuilder
interfaceType System.Type
methods IEnumerable
fields IEnumerable
return System.Reflection.Emit.ConstructorBuilder