Serialize to C# Script
<p>Roslyn scripting allows to evaluate a C# script containing just an object creation expression, effectively allowing to deserialize objects from scripts:</p>

<pre><code>var script = "new Point { X = 1, Y = 2 }";
var point = await CSharpScript.EvaluateAsync&lt;T&gt;(script);
</code></pre>

<p>Is there a library that allows to do the reverse serialization?</p>

<pre><code>script = ???.Serialize(point);
</code></pre>