Lecture overview -- Keyboard shortcut: 'u'  Previous page: Serialization [Section] -- Keyboard shortcut: 'p'  Next page: Examples of Serialization in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 31 : 40
Object-oriented Programming in C#
Input and Output Classes
Serialization

Serialization provides for input and output of a network of objects

  • Serialization

    • Writes an object o to a file

    • Also writes the objects referred from o

  • Deserialization

    • Reads a serialized file in order to reestablish the serialized object o

    • Also reestablishes the network of objects originally referred from o

  • Serialization and deserialization is supported via classes that implement the Iformatter interface:

    • BinaryFormatter and SoapFormatter

  • Methods in Iformatter:

    • Serialize and Deserialize