SharpYaml icon indicating copy to clipboard operation
SharpYaml copied to clipboard

Support System.Runtime.Serialization.ISerializable

Open solvingj opened this issue 8 years ago • 0 comments

When serializing objects in .NET, please support the native interface of ISerializable.

Json.NET provides a good template for how this should work. Essentially, your serializer should look for the interface, and if it's implemented then look for GetDataObject() method and only serialize the fields and properties returned from that.

http://www.newtonsoft.com/json/help/html/SerializationGuide.htm#ISerializable

solvingj avatar May 01 '17 15:05 solvingj