Summer.Batch.Common.Property.PropertyAccessor Class Reference
Utility class to access properties on an object. More...
Public Member Functions | |
PropertyAccessor (object wrappedInstance) | |
Creates a property accessor with the specified wrapped instance. More... | |
object | GetProperty (string propertyPath) |
Retrieves the value of a property on the wrapped instance. Allows path to reference nested properties. More... | |
Detailed Description
Utility class to access properties on an object.
Constructor & Destructor Documentation
Summer.Batch.Common.Property.PropertyAccessor.PropertyAccessor | ( | object | wrappedInstance | ) |
Creates a property accessor with the specified wrapped instance.
- Parameters
-
wrappedInstance the object to wrap
Member Function Documentation
object Summer.Batch.Common.Property.PropertyAccessor.GetProperty | ( | string | propertyPath | ) |
Retrieves the value of a property on the wrapped instance. Allows path to reference nested properties.
- Parameters
-
propertyPath the path to the property to retrieve
- Returns
- the value of the property
- Exceptions
-
InvalidPropertyException if the property does not exist
The documentation for this class was generated from the following file:
- Summer.Batch.Common/Property/PropertyAccessor.cs