C# Class Summer.Batch.Common.Property.PropertyAccessor

Utility class to access properties on an object.
Datei anzeigen Open project: SummerBatch/SummerBatch Class Usage Examples

Public Methods

Method Description
GetProperty ( string propertyPath ) : object

Retrieves the value of a property on the wrapped instance. Allows path to reference nested properties.

PropertyAccessor ( object wrappedInstance ) : System.ComponentModel

Creates a property accessor with the specified wrapped instance.

Private Methods

Method Description
GetPropertyDescriptor ( string propertyName, PropertyDescriptorCollection collection ) : PropertyDescriptor

Retrieves a property descriptor from its name.

Method Details

GetProperty() public method

Retrieves the value of a property on the wrapped instance. Allows path to reference nested properties.
 if the property does not exist
public GetProperty ( string propertyPath ) : object
propertyPath string the path to the property to retrieve
return object

PropertyAccessor() public method

Creates a property accessor with the specified wrapped instance.
public PropertyAccessor ( object wrappedInstance ) : System.ComponentModel
wrappedInstance object the object to wrap
return System.ComponentModel