Export (0) Print
Expand All

.NET Samples - How To: Serialization

.NET Framework 1.1

This section includes the following samples:

Serialize Sample

ISerializable Sample

Serialize Sample

This sample shows how to serialize a graph of objects using the serialization infrastructure.

Link to the online sample documentation

Link to the online sample source code

Namespaces used in this sample:

System; System.Runtime.Serialization; System.IO; System.Runtime.Serialization.Formatters.Binary; System.Collections; System.Runtime.Serialization.Formatters

Classes used in this sample:

Console; File; Form; Formatter; ArrayList; BinaryFormatter; Array; Stream; String

ISerializable Sample

This sample illustrates how to use the ISerializable interface to customize the serialization of your own objects.

Link to the online sample documentation

Link to the online sample source code

Namespaces used in this sample:

System; System.Runtime.Serialization; System.Runtime.Serialization.Formatters; System.Text; System.IO; System.Collections; System.Reflection; System.Runtime.Serialization.Formatters.Binary; System.Diagnostics

Classes used in this sample:

TreeNode; String; Console; Object; Formatter; Form; File; Stream; Type; StringBuilder; ArrayList; Array; SerializationInfo; Exception; TextWriter; Context; Types; Assembly; Module

Show:
© 2014 Microsoft