C# Class DotNetNuke.Extensions.Reflection.ReflectionHelper

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

Public Methods

Method 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

Method Description
ReflectionHelper ( object target ) : System

Initializes a new instance of the ReflectionHelper class.

Method Details

Field() public method

public Field ( string fieldName ) : ReflectionHelper
fieldName string
return ReflectionHelper

FindField() public static method

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

FindProperties() public static method

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

FindProperty() public static method

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

For() public static method

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

GetValue() public method

public GetValue ( ) : object
return object

Property() public method

public Property ( string propertyName ) : ReflectionHelper
propertyName string
return ReflectionHelper

SetValue() public method

public SetValue ( object value ) : ReflectionHelper
value object
return ReflectionHelper