Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 580 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 580 Bytes

CSharpScriptSerializer

A library that generates C# scripts that can be used to construct the given object:

    var input = new Point {X = 1, Y = 1};
    var script = CSScriptSerializer.Serialize(input);
    var output = CSScriptSerializer.Deserialize<Point>(script);

Here script is equal to "new Point {X = 1, Y = 1}"

See RoundTrippingTest.cs for more examples.

Get it from NuGet.