C# Class Newtonsoft.Json.Serialization.DynamicValueProvider

Get and set values for a MemberInfo using dynamic methods.
Inheritance: IValueProvider
Show file Open project: runegri/Applicable Class Usage Examples

Public Methods

Method Description
DynamicValueProvider ( MemberInfo memberInfo ) : System

Initializes a new instance of the DynamicValueProvider class.

GetValue ( object target ) : object

Gets the value.

SetValue ( object target, object value ) : void

Sets the value.

Method Details

DynamicValueProvider() public method

Initializes a new instance of the DynamicValueProvider class.
public DynamicValueProvider ( MemberInfo memberInfo ) : System
memberInfo System.Reflection.MemberInfo The member info.
return System

GetValue() public method

Gets the value.
public GetValue ( object target ) : object
target object The target to get the value from.
return object

SetValue() public method

Sets the value.
public SetValue ( object target, object value ) : void
target object The target to set the value on.
value object The value to set on the target.
return void