Closed GoogleCodeExporter closed 9 years ago
The auto-generated properties aren't generated with setters, so by default the
serializer ignores them since it couldn't deserialize those properties. This
code
will enable them so the serializer will output them.
var o = new { Name = "Hello world", Age = 10 };
Serializer s = new Serializer(o.GetType());
TypeData td = s.Config.GetTypeHandler(o.GetType());
foreach (IPropertyData prop in td.AllProperties)
{
prop.Ignored = false;
}
Console.WriteLine(s.Serialize(o));
Original comment by elliott....@gmail.com
on 28 Dec 2009 at 5:11
Thanks. It works fine now.
Great tool by the way.
Original comment by yurafilo...@gmail.com
on 30 Dec 2009 at 6:35
Original issue reported on code.google.com by
yurafilo...@gmail.com
on 25 Dec 2009 at 3:41