Interface IGetsValueFromReflection
An object which can get values from a target object by use of reflection.
Namespace: ZptSharp.Expressions.PathExpressions
Assembly: ZptSharp.dll
Syntax
public interface IGetsValueFromReflection
Methods
| Improve this Doc View SourceGetValue(FieldInfo, Object)
Gets the value from the specified field and target object.
Declaration
object GetValue(FieldInfo field, object target)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field | The field to use in order to get the value. |
System.Object | target | The target object from which to get the value. |
Returns
Type | Description |
---|---|
System.Object | The field value. |
GetValue(MethodInfo, Object)
Gets the value from the specified (parameterless) method and target object.
Declaration
object GetValue(MethodInfo method, object target)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | method | The method to use in order to get the value. |
System.Object | target | The target object from which to get the value. |
Returns
Type | Description |
---|---|
System.Object | The method return value. |
GetValue(PropertyInfo, Object)
Gets the value from the specified property and target object.
Declaration
object GetValue(PropertyInfo property, object target)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.PropertyInfo | property | The property to use in order to get the value. |
System.Object | target | The target object from which to get the value. |
Returns
Type | Description |
---|---|
System.Object | The property value. |