C# Class System.Reflection.DynamicMethodCompiler

This class defines Dynamic method compiler functions
Mostra file Open project: CISC181/VolTeerNET

Public Methods

Method Description
CreateDefaultConstructorDelegate ( Type type ) : DefaultCreatorDelegate

Creates the default constructor delegate.

CreateGetterDelegate ( Type type, FieldInfo fieldInfo ) : GetterDelegate

Creates the getter delegate.

CreateGetterDelegate ( Type type, PropertyInfo propertyInfo ) : GetterDelegate

Creates the getter delegate.

CreateSetterDelegate ( Type type, FieldInfo fieldInfo ) : SetterDelegate

Creates the setter delegate.

CreateSetterDelegate ( Type type, PropertyInfo propertyInfo ) : SetterDelegate

Creates the setter delegate.

Private Methods

Method Description
BoxIfNeeded ( Type type, ILGenerator generator ) : void

Boxes if needed.

CreateDynamicGetMethod ( Type type ) : DynamicMethod

Creates the dynamic get method.

CreateDynamicSetMethod ( Type type ) : DynamicMethod

Creates the dynamic set method.

UnboxIfNeeded ( Type type, ILGenerator generator ) : void

Unboxes if needed.

Method Details

CreateDefaultConstructorDelegate() public static method

Creates the default constructor delegate.
Exception.
public static CreateDefaultConstructorDelegate ( Type type ) : DefaultCreatorDelegate
type Type The type.
return DefaultCreatorDelegate

CreateGetterDelegate() public static method

Creates the getter delegate.
public static CreateGetterDelegate ( Type type, FieldInfo fieldInfo ) : GetterDelegate
type Type The type.
fieldInfo FieldInfo The field info.
return GetterDelegate

CreateGetterDelegate() public static method

Creates the getter delegate.
public static CreateGetterDelegate ( Type type, PropertyInfo propertyInfo ) : GetterDelegate
type Type The type.
propertyInfo PropertyInfo The property info.
return GetterDelegate

CreateSetterDelegate() public static method

Creates the setter delegate.
public static CreateSetterDelegate ( Type type, FieldInfo fieldInfo ) : SetterDelegate
type Type The type.
fieldInfo FieldInfo The field info.
return SetterDelegate

CreateSetterDelegate() public static method

Creates the setter delegate.
public static CreateSetterDelegate ( Type type, PropertyInfo propertyInfo ) : SetterDelegate
type Type The type.
propertyInfo PropertyInfo The property info.
return SetterDelegate