http://xmlserializer.codeplex.com/
The article and examples are in the zip file.
Quick Usage example:
r
Reflection
ReflectionPropertyCache cache = new ReflectionPropertyCache();
ObjectInfo carInfo = cache.GetCachedObjectInfo(mycar, mycar.GetType());
carInfo.propertyInfo[0].setter.dateTimeSetter(mycar, DateTime.Now);
Serialization
private void Example1Serialization()
{
IPodConnector connector = new IPodConnector() { Version = "1.1a" };
Screen screen = new Screen() { Size = "4 inch" };
Stereo stereo = new Stereo() { Make = "alpine", Watts = "1000", };
Car mycar = new Car() { brake = "5 piston", wheel = "22", Stereo = stereo, IPodConnector = connector };
StringBuilder XML1 = SerializerFacade.SerializeBasic(mycar);
Car entityFromXml = SerializerFacade.Deserialize<Car>(XML1.ToString());
}
Performance
