コード例 #1
0
 public abstract void WriteNson(INsonEncoder encoder, object value);
コード例 #2
0
 public override void WriteNson(INsonEncoder encoder, Doodle value)
 {
     encoder.EncodeKeyValuePair("key-that-isnt-on-object", true);
     encoder.EncodeKeyValuePair("another_key", "with a value");
     encoder.EncodeKeyValuePair("string_array", new string[] { "first", "second" });
 }
コード例 #3
0
 public override void WriteNson(INsonEncoder encoder, object value)
 {
     throw new NotSupportedException("NsonObjectFactory should only be used while decoding unless you overwrite WriteNson");
 }
コード例 #4
0
 public override void WriteNson(INsonEncoder encoder, Doodle value)
 {
     encoder.EncodeKeyValuePair("key-that-isnt-on-object", true);
     encoder.EncodeKeyValuePair("another_key", "with a value");
 }