public override void Serialize(PackedStream_2 stream) { int Count = 0; if (this.Data != null) { Count = this.Data.Count; } SerializeList serializeList = new SerializeList(stream, 1, this.Type.Values.Type, Count); for (int index = 0; index < Count; ++index) { serializeList.SetFieldIndex(index, this.Data[index].VarId); this.Data[index].Value.Serialize(stream); } }
public override void Serialize(PackedStream_2 stream) { int count = 0; if (this.Data != null) { count = this.Data.Count; } SerializeList list = new SerializeList(stream, 1, base.Type.Values.Type, count); for (int i = 0; i < count; i++) { list.SetFieldIndex(i, this.Data[i].VarId); this.Data[i].Value.Serialize(stream); } }
public override void Serialize(PackedStream2 stream) { var count = 0; if (Data != null) { count = Data.Count; } var serializeList = new SerializeList(stream, 1, Type.Values.Type, count); for (var index = 0; index < count; ++index) { serializeList.SetFieldIndex(index, Data[index].VarId); Data[index].Value.Serialize(stream); } }