Beispiel #1
0
 public void Write(int[] vals)
 {
     using (var scope = new JsonScopeArrayWriter(writer))
     {
         foreach (var x in vals)
         {
             writer.Write(x);
         }
     }
 }
Beispiel #2
0
 public void WriteKeyValue(string key, IEnumerable <float> e)
 {
     writer.WritePropertyName(key);
     using (var scope = new JsonScopeArrayWriter(writer))
     {
         foreach (float v in e)
         {
             writer.Write(v);
         }
     }
 }