public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader, int version) { this.ListId = reader.ReadBytes(reader.ReadInt32()); this.TTLSeconds = reader.ReadDouble(); this.UpdateListMetadata = reader.ReadBoolean(); this.ListMetadata = reader.ReadBytes(reader.ReadInt32()); this.addList = DeserializeList(reader); this.deleteList = DeserializeList(reader); if (version >= 2) { this.ClearList = reader.ReadBoolean(); } if (version >= 3) { this.ReplaceList = reader.ReadBoolean(); } if (version >= 4) { this.VirtualListCount = reader.ReadInt32(); } if (version >= 5) { this.PrimaryId = reader.ReadInt32(); } }