C# Class Ywdsoft.Utility.DynamicMethodFactory

Afficher le fichier Open project: CrazyJson/TaskManager

Méthodes publiques

Méthode Description
CreateConstructor ( ConstructorInfo constructor ) : CtorDelegate
CreateFieldGetter ( FieldInfo field ) : GetValueDelegate
CreateFieldSetter ( FieldInfo field ) : SetValueDelegate
CreateMethod ( MethodInfo method ) : MethodDelegate
CreatePropertyGetter ( PropertyInfo property ) : GetValueDelegate
CreatePropertySetter ( PropertyInfo property ) : SetValueDelegate

Private Methods

Méthode Description
EmitCastToReference ( ILGenerator il, Type type ) : void

Method Details

CreateConstructor() public static méthode

public static CreateConstructor ( ConstructorInfo constructor ) : CtorDelegate
constructor System.Reflection.ConstructorInfo
Résultat CtorDelegate

CreateFieldGetter() public static méthode

public static CreateFieldGetter ( FieldInfo field ) : GetValueDelegate
field System.Reflection.FieldInfo
Résultat GetValueDelegate

CreateFieldSetter() public static méthode

public static CreateFieldSetter ( FieldInfo field ) : SetValueDelegate
field System.Reflection.FieldInfo
Résultat SetValueDelegate

CreateMethod() public static méthode

public static CreateMethod ( MethodInfo method ) : MethodDelegate
method System.Reflection.MethodInfo
Résultat MethodDelegate

CreatePropertyGetter() public static méthode

public static CreatePropertyGetter ( PropertyInfo property ) : GetValueDelegate
property System.Reflection.PropertyInfo
Résultat GetValueDelegate

CreatePropertySetter() public static méthode

public static CreatePropertySetter ( PropertyInfo property ) : SetValueDelegate
property System.Reflection.PropertyInfo
Résultat SetValueDelegate