Show / Hide Table of Contents

Class ReflectionValueReader

Implementation of IGetsValueFromReflection which uses plain/uncached reflection.

Inheritance
System.Object
ReflectionValueReader
Implements
IGetsValueFromReflection
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 Source

GetValue(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

IGetsValueFromReflection
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX