C# Class LinFu.Proxy.ProxyMethodBuilder

Inheritance: IMethodBuilder, IInitialize
Show file Open project: philiplaureano/LinFu Class Usage Examples

Public Methods

Method Description
CreateMethod ( Mono.Cecil.TypeDefinition targetType, MethodInfo method ) : Mono.Cecil.MethodDefinition

Creates a method that matches the signature defined in the method parameter.

Initialize ( IServiceContainer source ) : void

Initializes the class with the source container.

ProxyMethodBuilder ( ) : System

Initializes the ProxyMethodBuilder class with the default property values.

Private Methods

Method Description
MatchGenericArguments ( Mono.Cecil.MethodDefinition newMethod, ICollection typeArguments ) : void

Matches the generic parameters of a target method

Method Details

CreateMethod() public method

Creates a method that matches the signature defined in the method parameter.
public CreateMethod ( Mono.Cecil.TypeDefinition targetType, MethodInfo method ) : Mono.Cecil.MethodDefinition
targetType Mono.Cecil.TypeDefinition The type that will host the new method.
method System.Reflection.MethodInfo The method from which the signature will be derived.
return Mono.Cecil.MethodDefinition

Initialize() public method

Initializes the class with the source container.
public Initialize ( IServiceContainer source ) : void
source IServiceContainer The instance that will create the class instance.
return void

ProxyMethodBuilder() public method

Initializes the ProxyMethodBuilder class with the default property values.
public ProxyMethodBuilder ( ) : System
return System