C# Class NHibernate.Bytecode.Lightweight.ReflectionOptimizer

Inheritance: IReflectionOptimizer, IInstantiationOptimizer
Afficher le fichier Open project: nhibernate/nhibernate-core

Protected Properties

Свойство Type Description
mappedType System.Type

Méthodes publiques

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

Class constructor.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

CreateDynamicMethod() protected méthode

protected CreateDynamicMethod ( System returnType, System argumentTypes ) : DynamicMethod
returnType System
argumentTypes System
Résultat System.Reflection.Emit.DynamicMethod

CreateInstance() public méthode

public CreateInstance ( ) : object
Résultat object

ReflectionOptimizer() public méthode

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

ThrowExceptionForNoDefaultCtor() protected méthode

protected ThrowExceptionForNoDefaultCtor ( System type ) : void
type System
Résultat void

Property Details

mappedType protected_oe property

protected System.Type mappedType
Résultat System.Type