Skip to content

Quick Start

When no configuration is provided the defaults are as follows:

Option Behaviour
Property Filter All public properties are set on the object if found in the dictionary
Value Mapping The value from the dictionary sets the property on the object with no transformation
Property Name Provider The default property name provider sets the dictionary key to the name of the property

The following code would will just use the default configuration when converting an object to a dictionary.

var theObject = new Dictionary<string, object>
{
    ["AValue"] = 12
}
.ToObject<MyObject>();

// theObject will have AValue set to 12