示例#1
0
 public void WriteJsonWrapper(IJsonWrapper wrapper, bool privateWriter)
 {
     if (privateWriter)
     {
         //this.TextWriter.Write(wrapper.ToJson());
         this.WriteRaw(wrapper.ToJson());
     }
     else
     {
         // ((IJsonWrapper)obj).ToJson(writer);
         wrapper.ToJson(this);
     }
     context.ExpectingValue = false;
 }
示例#2
0
 public void WriteJsonWrapper(IJsonWrapper wrapper, bool privateWriter)
 {
     if (privateWriter) {
         this.TextWriter.Write(wrapper.ToJson());
     }
     else {
         // ((IJsonWrapper)obj).ToJson(writer);
         wrapper.ToJson(this);
     }
     context.ExpectingValue = false;
 }