O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ISerializable

Synopsis

Indicates that an object is serializable and provides serialization information to the formatter. This interface defines GetObjectData(), which specifies the member information that will be provided to a SerializationInfo instance in a specific StreamingContext. Classes that implement ISerializable must also provide a constructor that takes the same arguments as GetObjectData(). The constructor must use those arguments to deserialize an instance of the class.

public interface ISerializable {
// Public Instance Methods
   public method void GetObjectData(SerializationInfo info, 
        StreamingContext context);  
}

Implemented By

Multiple types

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required