.NET Core Configuration Serialization
<p>Is there a way to serialize an object so that it could then be rehydrated by .Net Core Configuration Binder?</p>

<p>Basically, I'd like to get this Test to pass:</p>

<pre><code>[Test]
public void Can_Serialize_And_Rehydrate()
{
   var foo = new Foo{ Prop1 = 42; Prop2 = "Test" }

   Dictionary&lt;string, string&gt; serialized = Serialize(Foo);

   var deserializedFoo = new Foo();

    new ConfigurationBuilder()
        .AddInMemoryCollection(serialized)
        .Build()
        .Bind(deserializedFoo);

   Assert.AreEqual(deserializedFoo.Prop1, 42);
   Assert.AreEqual(deserializedFoo.Prop2, "Test");
}
</code></pre>

<p>Is there a Serializer out-of-the-box, or am I'm going to need to write my own <code>Serialize()</code> method?</p>