public override void Serialize(BinaryWriter w) { base.Serialize(w); w.Write(requestId); ComplexDataSerializer.Serialize(data, w); StringSerializer.Serialize(name, w); if (datas != null) { w.Write(true); w.Write((int)datas.Count); foreach (var element in datas) { SubDataSerializer.Serialize(element, w); } } else { w.Write(false); } }
public override void Serialize(BinaryWriter w) { base.Serialize(w); ComplexDataSerializer.Serialize(RetVal, w); }