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; }
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; }