C# Класс System.Reflection.DynamicMethodCompiler

This class defines Dynamic method compiler functions
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

CreateDefaultConstructorDelegate() публичный статический Метод

Creates the default constructor delegate.
Exception.
public static CreateDefaultConstructorDelegate ( Type type ) : DefaultCreatorDelegate
type Type The type.
Результат DefaultCreatorDelegate

CreateGetterDelegate() публичный статический Метод

Creates the getter delegate.
public static CreateGetterDelegate ( Type type, FieldInfo fieldInfo ) : GetterDelegate
type Type The type.
fieldInfo FieldInfo The field info.
Результат GetterDelegate

CreateGetterDelegate() публичный статический Метод

Creates the getter delegate.
public static CreateGetterDelegate ( Type type, PropertyInfo propertyInfo ) : GetterDelegate
type Type The type.
propertyInfo PropertyInfo The property info.
Результат GetterDelegate

CreateSetterDelegate() публичный статический Метод

Creates the setter delegate.
public static CreateSetterDelegate ( Type type, FieldInfo fieldInfo ) : SetterDelegate
type Type The type.
fieldInfo FieldInfo The field info.
Результат SetterDelegate

CreateSetterDelegate() публичный статический Метод

Creates the setter delegate.
public static CreateSetterDelegate ( Type type, PropertyInfo propertyInfo ) : SetterDelegate
type Type The type.
propertyInfo PropertyInfo The property info.
Результат SetterDelegate