예제 #1
0
 private void serialize(AutoCSer.Json.Serializer serializer)
 {
     serializer.CharStream.Write('[');
     serializer.Serialize(ClientNodeId);
     serializer.CharStream.Write(',');
     Node.Serialize(serializer, Checker);
     serializer.CharStream.Write(']');
 }
예제 #2
0
 private static void serialize(AutoCSer.Json.Serializer serializer, ReturnValue value)
 {
     if (value == null)
     {
         serializer.CharStream.WriteJsonArray();
     }
     else
     {
         CharStream jsonStream = serializer.CharStream;
         jsonStream.Write('[');
         serializer.Serialize(value.ClientNodeId);
         jsonStream.Write(',');
         value.serialize(serializer);
         jsonStream.Write(']');
     }
 }
예제 #3
0
 protected void serializeStart(AutoCSer.Json.Serializer serializer, ServerNodeIdChecker checker)
 {
     serializer.CharStream.Write('[');
     serializer.Serialize(checker.ServerNodeIds[GetType()]);
 }