C# Class Ywdsoft.Utility.DynamicMethodFactory

Datei anzeigen Open project: CrazyJson/TaskManager

Public Methods

Method 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

Method Description
EmitCastToReference ( ILGenerator il, Type type ) : void

Method Details

CreateConstructor() public static method

public static CreateConstructor ( ConstructorInfo constructor ) : CtorDelegate
constructor System.Reflection.ConstructorInfo
return CtorDelegate

CreateFieldGetter() public static method

public static CreateFieldGetter ( FieldInfo field ) : GetValueDelegate
field System.Reflection.FieldInfo
return GetValueDelegate

CreateFieldSetter() public static method

public static CreateFieldSetter ( FieldInfo field ) : SetValueDelegate
field System.Reflection.FieldInfo
return SetValueDelegate

CreateMethod() public static method

public static CreateMethod ( MethodInfo method ) : MethodDelegate
method System.Reflection.MethodInfo
return MethodDelegate

CreatePropertyGetter() public static method

public static CreatePropertyGetter ( PropertyInfo property ) : GetValueDelegate
property System.Reflection.PropertyInfo
return GetValueDelegate

CreatePropertySetter() public static method

public static CreatePropertySetter ( PropertyInfo property ) : SetValueDelegate
property System.Reflection.PropertyInfo
return SetValueDelegate