C# Класс DotNetNuke.Extensions.Reflection.ReflectionHelper

Provides an easy-to-use fluent interface for setting and retrieving reflection data.
Показать файл Открыть проект

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

Метод Описание
Field ( string fieldName ) : ReflectionHelper
FindField ( Type type, string name ) : FieldInfo

Finds the field recursive.

FindProperties ( Type type ) : System.Reflection.PropertyInfo[]

Finds the properties.

FindProperty ( Type type, string name ) : PropertyInfo

Finds the property recursive.

For ( object instance ) : ReflectionHelper

Factory method which defines target instance.

GetValue ( ) : object
Property ( string propertyName ) : ReflectionHelper
SetValue ( object value ) : ReflectionHelper

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

Метод Описание
ReflectionHelper ( object target ) : System

Initializes a new instance of the ReflectionHelper class.

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

Field() публичный Метод

public Field ( string fieldName ) : ReflectionHelper
fieldName string
Результат ReflectionHelper

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

Finds the field recursive.
public static FindField ( Type type, string name ) : FieldInfo
type System.Type The type.
name string The name.
Результат System.Reflection.FieldInfo

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

Finds the properties.
public static FindProperties ( Type type ) : System.Reflection.PropertyInfo[]
type System.Type The type.
Результат System.Reflection.PropertyInfo[]

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

Finds the property recursive.
public static FindProperty ( Type type, string name ) : PropertyInfo
type System.Type The type.
name string The name.
Результат System.Reflection.PropertyInfo

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

Factory method which defines target instance.
public static For ( object instance ) : ReflectionHelper
instance object The instance.
Результат ReflectionHelper

GetValue() публичный Метод

public GetValue ( ) : object
Результат object

Property() публичный Метод

public Property ( string propertyName ) : ReflectionHelper
propertyName string
Результат ReflectionHelper

SetValue() публичный Метод

public SetValue ( object value ) : ReflectionHelper
value object
Результат ReflectionHelper