divyang4481 / xstream-dot-net

Automatically exported from code.google.com/p/xstream-dot-net
1 stars 1 forks source link

[NonSerialized] fields are serialized. They shouldn't be. #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When you use xstream-dot-net to serialize an object that contains 
[NonSerialized] fields, it serialized them anyway, which is undesirable and 
different than Java's XStream which ignores transient fields.

These fields could be added to the ignore fields list, but that adds 
substantial complexity when dealing with an assortment of objects of objects 
being serialized. You would always have to have knowledge of the objects 
being serialized, potentially asking them via an implemented interface what 
fields should not be serialized.

Original issue reported on code.google.com by cgoudien...@gmail.com on 8 Oct 2009 at 4:46