Project Description
Object Instance to Object Initialiser Syntax serialiser

Creates an object initialiser syntax text from an instance.

Usage:

using mmsquare.dotNet.TestHelper;

var p = new Person()
{
    FirstName = "Jon",
    LastName = "Skeet"
};

string s = InitialiserFromInstance.Create(p); 

Will produce:
s = "var o = new Person { FirstName = \"Jon\", LastName = \"Skeet\" };" 

Last edited Jun 29, 2010 at 1:18 PM by mfloryan, version 4