public void Deserialize(CompactReader reader) { T obj; int c = reader.ReadInt32(); for (int i = 0; i < c; i++) { obj = reader.ReadObjectAs <T>(); this.AddLast(obj); } }