Class ReflectionValueProvider
Get and set values for a System.Reflection.MemberInfo using reflection.
Inheritance
System.Object
ReflectionValueProvider
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: Bayat.Json.Serialization
Assembly: Bayat.Json.Runtime.dll
Syntax
public class ReflectionValueProvider : IValueProvider
Constructors
| Improve this Doc View SourceReflectionValueProvider(MemberInfo)
Initializes a new instance of the ReflectionValueProvider class.
Declaration
public ReflectionValueProvider(MemberInfo memberInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MemberInfo | memberInfo | The member info. |
Methods
| Improve this Doc View SourceGetValue(Object)
Gets the value.
Declaration
public object GetValue(object target)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | The target to get the value from. |
Returns
Type | Description |
---|---|
System.Object | The value. |
SetValue(Object, Object)
Sets the value.
Declaration
public void SetValue(object target, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | The target to set the value on. |
System.Object | value | The value to set on the target. |