|
Joutsen.ArgumentsParsing
v0.2.1
|
A utility class that uses reflection to set the parsed values on the properties of a target instance. More...
Public Member Functions | |
| PropertyInfo | GetParseResultAttributedProperty (string name, object target) |
| Fetches the property that has the ParseTargetPropertyAttribute with the name from the target. More... | |
| PropertyInfo | GetPropertyByName (string name, object target) |
| Fetches the property with the name from the target. More... | |
| object | GetTargetPropertyValue (string name, object target) |
| Fetches the value of a property that is a target for a parsed value. More... | |
| bool | SetTargetProperty (string name, object target, object value) |
| Sets a parsed value on a target instance. More... | |
A utility class that uses reflection to set the parsed values on the properties of a target instance.
| PropertyInfo Joutsen.ArgumentsParsing.TargetPropertyAccessor.GetParseResultAttributedProperty | ( | string | name, |
| object | target | ||
| ) |
Fetches the property that has the ParseTargetPropertyAttribute with the name from the target.
| name | the argument name |
| target | the instance from which to fetch the property |
| the | property |
| PropertyInfo Joutsen.ArgumentsParsing.TargetPropertyAccessor.GetPropertyByName | ( | string | name, |
| object | target | ||
| ) |
Fetches the property with the name from the target.
| name | the argument/property name |
| target | the instance from which to fetch the property |
| the | property |
| object Joutsen.ArgumentsParsing.TargetPropertyAccessor.GetTargetPropertyValue | ( | string | name, |
| object | target | ||
| ) |
Fetches the value of a property that is a target for a parsed value.
| name | the argument/property name |
| target | the instance from which to fetch the property value |
| bool Joutsen.ArgumentsParsing.TargetPropertyAccessor.SetTargetProperty | ( | string | name, |
| object | target, | ||
| object | value | ||
| ) |
Sets a parsed value on a target instance.
| name | the argument/property name |
| target | the instance from which to fetch the property value |
| value | the parsed value |
1.8.13