This project is read-only.

Creating new objects from string



Sample usage:
var Model = new HydrateGeneric<MyModel>();
Model.AddNewProperty("OneProp", "bb");
Model.AddNewProperty("newData.StartDate", DateTime.Now.AddDays(1).ToString());
Model.AddNewProperty("newData.SecondProp", "AB");
Model.AddNewProperty("newData.aOne.ThirdProp", "XXX");

var data = Model.NewObject();
Console.WriteLine(data.newData.SecondProp);
Console.WriteLine(data.newData.StartDate);
Console.WriteLine(data.newData.aOne.ThirdProp);

Console.WriteLine("if you see various data, all is well");
Console.ReadKey();


You can also install from Nuget.Search for Hydrate or
https://nuget.org/packages/Hydrate

Last edited Dec 29, 2011 at 10:45 PM by ignatandrei, version 4