Table of Contents

Class ReflectionValueProvider

Namespace
Newtonsoft.Json.Serialization
Assembly
Newtonsoft.Json.dll

Get and set values for a MemberInfo using reflection.

public class ReflectionValueProvider : IValueProvider
Inheritance
ReflectionValueProvider
Implements
Inherited Members

Constructors

ReflectionValueProvider(MemberInfo)

Initializes a new instance of the ReflectionValueProvider class.

public ReflectionValueProvider(MemberInfo memberInfo)

Parameters

memberInfo MemberInfo

The member info.

Methods

GetValue(object)

Gets the value.

public object GetValue(object target)

Parameters

target object

The target to get the value from.

Returns

object

The value.

SetValue(object, object)

Sets the value.

public void SetValue(object target, object value)

Parameters

target object

The target to set the value on.

value object

The value to set on the target.