예제 #1
0
 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);
     }
 }
예제 #2
0
 public override void Serialize(BinaryWriter w)
 {
     base.Serialize(w);
     ComplexDataSerializer.Serialize(RetVal, w);
 }