Beispiel #1
0
 public static JsonWriter Create(String path, JsonWriterSettings settings)
 {
     return new JsonWriter(new StreamWriter(path), true, settings);
 }
Beispiel #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;
 }