The text of this article is not in this database — only its details are. Read it on the old site: How to serialize an object using an ISerializable interface
5 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Yogi SPosted Sep 8, 2017, 9:29 AM
The class should be marked as [Serializable]
Debbie FaceyPosted Mar 15, 2011, 3:28 PM
This is misleading. The ISerializable interface is used to customize binary serialization. The XmlSerializer will serialize your class without the need to implement this interface. Element names will come from the names for Properties. So in the above example the implementation of ISerializable interface has no effect. If you want to customize XML Serialization then the IXmlSerializable interface should be used.
Cesar RojoPosted Aug 18, 2010, 11:33 AM
Very simple and well exlpained Thanks!!!