1public Stream Serialize()
2{
3 //Use Version Tolerant Serialization cocepts
4 BinaryFormatter formatter = new BinaryFormatter();
5
6 MemoryStream stream = new MemoryStream();
7
8 formatter.Serialize(stream, this);
9 stream.Position = 0;
10
11 return stream;
12}