SerializableAttribute

SerializableAttribute

System (mscorlib.dll) sealed class

This attribute is used in the class definition to indicate that a class can be serialized. By default, all fields in the class are serialized except for the fields that are marked with a NonSerializedAttribute .

It is not necessary to use this attribute if a given type implements the System.Runtime.Serialization.ISerializable interface, which indicates that a class provides its own methods for serialization.

 public sealed class  SerializableAttribute  : Attribute {  // Public Constructors  public  SerializableAttribute  ( ); } 

Hierarchy

Object Attribute SerializableAttribute

Valid On

Class, Struct, Enum, Delegate



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net