Exemplo n.º 1
0
 public bool Serialize(Stream stream)
 {
     using (ObjectStream MS = new ObjectStream(stream))
     {
         MS.WriteInt64(ID);
         MS.WriteInt32(Age);
         MS.WriteString(Name);
         MS.WriteData(Data);
     }
     return true;
 }
Exemplo n.º 2
0
 public virtual bool Serialize(Stream stream)
 {
     using (ObjectStream OBS = new ObjectStream(stream))
     {
         OBS.WriteData(FileHash);
         OBS.WriteUInt64(FileVersion);
         OBS.WriteString(RemoteFilename);
         OBS.WriteData(Data);
     }
     return true;
 }