Class ReflectionValueReader
Implementation of IGetsValueFromReflection which uses plain/uncached reflection.
Inheritance
System.Object
ReflectionValueReader
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Expressions.PathExpressions
Assembly: ZptSharp.dll
Syntax
public class ReflectionValueReader : IGetsValueFromReflection
Methods
| Improve this Doc View SourceGetValue(FieldInfo, Object)
Gets the value from the specified field and target object.
Declaration
public 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
public 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
public 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. |