示例#1
0
 public static JsonWriter Create(String path, JsonWriterSettings settings)
 {
     return new JsonWriter(new StreamWriter(path), true, settings);
 }
示例#2
0
 internal JsonWriter(TextWriter output, bool ownOutput, JsonWriterSettings settings)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     this.output = output;
     this.ownOutput = ownOutput;
     this.settings = settings;
 }