-, [Serializable], dotnet json, xml .. , , , , xml json.
[Serializable] - #: 50 #.
You can serialize a class without being [Serializable], since @Darin (+1) indicated that you cannot retrospectively redefine the class. If I were you, I would put [Serializable], since working around it is not worth the effort.
source
share