2 // System.SerializableAttribute.cs
5 // Miguel de Icaza (miguel@ximian.com)
7 // (C) Ximian, Inc. http://www.ximian.com
13 /// Serialization Attribute for classes.
17 /// Use SerializableAttribute to mark classes that do not implement
18 /// the ISerializable interface but that want to be serialized.
20 /// Failing to do so will cause the system to throw an exception.
22 /// When a class is market with the SerializableAttribute, all the
23 /// fields are automatically serialized with the exception of those
24 /// that are tagged with the NonSerializedAttribute.
26 /// SerializableAttribute should only be used for classes that contain
27 /// simple data types that can be serialized and deserialized by the
28 /// runtime (typically you would use NonSerializedAttribute on data
29 /// that can be reconstructed at any point: like caches or precomputed
33 [AttributeUsage(AttributeTargets.Class, Inherited=false, AllowMultiple=false)]
34 public sealed class SerializableAttribute : Attribute {