C# Class NProxy.Core.Internal.Reflection.Emit.MethodInfoTypeFactory

Represents a method information type factory.
Inheritance: ITypeFactory
Exibir arquivo Open project: mtamme/NProxy

Public Methods

Method Description
CreateType ( MethodInfo methodInfo ) : Type
MethodInfoTypeFactory ( ITypeRepository typeRepository ) : System

Initializes a new instance of the MethodInfoTypeFactory class.

Private Methods

Method Description
BuildConstructor ( TypeBuilder typeBuilder, FieldInfo methodFieldInfo ) : void

Builds the constructor.

BuildInvokeMethod ( TypeBuilder typeBuilder, MethodInfo methodInfo, Type genericParameterTypes, bool isVirtual ) : void

Builds the invoke method.

BuildTypeInitializer ( TypeBuilder typeBuilder, MethodInfo methodInfo, Type genericParameterTypes, FieldInfo methodFieldInfo ) : void

Builds the type initializer.

LoadParameterValues ( ILGenerator ilGenerator, int argumentIndex, IList parameterTypes, IList parameterValueLocalBuilders ) : void

Loads the parameter values onto the stack.

RestoreByReferenceParameterValues ( ILGenerator ilGenerator, int argumentIndex, IList parameterTypes, IList parameterValueLocalBuilders ) : void

Restores the by reference parameter values.

Method Details

CreateType() public method

public CreateType ( MethodInfo methodInfo ) : Type
methodInfo System.Reflection.MethodInfo
return System.Type

MethodInfoTypeFactory() public method

Initializes a new instance of the MethodInfoTypeFactory class.
public MethodInfoTypeFactory ( ITypeRepository typeRepository ) : System
typeRepository ITypeRepository The type repository.
return System