C# Class NHibernate.Bytecode.Lightweight.ReflectionOptimizer

Inheritance: IReflectionOptimizer, IInstantiationOptimizer
Mostra file Open project: nhibernate/nhibernate-core

Protected Properties

Property Type Description
mappedType System.Type

Public Methods

Method Description
CreateInstance ( ) : object
ReflectionOptimizer ( System mappedType, IGetter getters, ISetter setters ) : System.Reflection

Class constructor.

Protected Methods

Method Description
CreateCreateInstanceMethod ( System type ) : CreateInstanceInvoker

Generates a dynamic method which creates a new instance of type when invoked.

CreateDynamicMethod ( System returnType, System argumentTypes ) : DynamicMethod
ThrowExceptionForNoDefaultCtor ( System type ) : void

Private Methods

Method Description
EmitCastToReference ( ILGenerator il, System type ) : void
GenerateGetPropertyValuesMethod ( IGetter getters ) : GetPropertyValuesInvoker

Generates a dynamic method on the given type.

GenerateSetPropertyValuesMethod ( IGetter getters, ISetter setters ) : SetPropertyValuesInvoker

Generates a dynamic method on the given type.

Method Details

CreateCreateInstanceMethod() protected method

Generates a dynamic method which creates a new instance of type when invoked.
protected CreateCreateInstanceMethod ( System type ) : CreateInstanceInvoker
type System
return CreateInstanceInvoker

CreateDynamicMethod() protected method

protected CreateDynamicMethod ( System returnType, System argumentTypes ) : DynamicMethod
returnType System
argumentTypes System
return System.Reflection.Emit.DynamicMethod

CreateInstance() public method

public CreateInstance ( ) : object
return object

ReflectionOptimizer() public method

Class constructor.
public ReflectionOptimizer ( System mappedType, IGetter getters, ISetter setters ) : System.Reflection
mappedType System
getters IGetter
setters ISetter
return System.Reflection

ThrowExceptionForNoDefaultCtor() protected method

protected ThrowExceptionForNoDefaultCtor ( System type ) : void
type System
return void

Property Details

mappedType protected_oe property

protected System.Type mappedType
return System.Type