C# Class DotNetNuke.Extensions.Reflection.ReflectionHelper

Provides an easy-to-use fluent interface for setting and retrieving reflection data.
Afficher le fichier Open project: JonHaywood/DotNetNuke.Extensions

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
ReflectionHelper ( object target ) : System

Initializes a new instance of the ReflectionHelper class.

Method Details

Field() public méthode

public Field ( string fieldName ) : ReflectionHelper
fieldName string
Résultat ReflectionHelper

FindField() public static méthode

Finds the field recursive.
public static FindField ( Type type, string name ) : FieldInfo
type System.Type The type.
name string The name.
Résultat System.Reflection.FieldInfo

FindProperties() public static méthode

Finds the properties.
public static FindProperties ( Type type ) : System.Reflection.PropertyInfo[]
type System.Type The type.
Résultat System.Reflection.PropertyInfo[]

FindProperty() public static méthode

Finds the property recursive.
public static FindProperty ( Type type, string name ) : PropertyInfo
type System.Type The type.
name string The name.
Résultat System.Reflection.PropertyInfo

For() public static méthode

Factory method which defines target instance.
public static For ( object instance ) : ReflectionHelper
instance object The instance.
Résultat ReflectionHelper

GetValue() public méthode

public GetValue ( ) : object
Résultat object

Property() public méthode

public Property ( string propertyName ) : ReflectionHelper
propertyName string
Résultat ReflectionHelper

SetValue() public méthode

public SetValue ( object value ) : ReflectionHelper
value object
Résultat ReflectionHelper