Esempio n. 1
0
 public bool Deserialize(Stream stream)
 {
     using (ObjectStream MS = new ObjectStream(stream))
     {
         MS.Write(Data, 0, Data.Length);
         MS.Position = 0;
         ID = MS.ReadInt64();
         Age = MS.ReadInt32();
         Name = MS.ReadString();
         Data = MS.ReadData();
     }
     return true;
 }