Beispiel #1
0
 public static void WriteArgs(this IJSValueWriter writer, params object[] args)
 {
     writer.WriteArrayBegin();
     foreach (var arg in args)
     {
         writer.WriteValueObject(arg);
     }
     writer.WriteArrayEnd();
 }
Beispiel #2
0
 public static bool WriteProperty <T>(this IJSValueWriter writer, string name, T value)
 {
     return(writer.WritePropertyName(name) && writer.WriteValueObject(value));
 }