Serializing an object (an instance of a class) means turning it into something that can be written on a file or broadcasted over the network, such as an XML file (Xml serialization) or a Byte array (binary serialization).
This needs to be a two way operation, so you must be able to “Deserialize” the object.
In order to be serializeble an object must contains just serializable fields/property or fields marked as not serialized. For example a Sql connection is not serialized (it would make no sense deserializing it somewhere else…)
1
solved c#: SerializableAttribute [closed]