public abstract void WriteNson(INsonEncoder encoder, object value);
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" }); }
public override void WriteNson(INsonEncoder encoder, object value) { throw new NotSupportedException("NsonObjectFactory should only be used while decoding unless you overwrite WriteNson"); }
public override void WriteNson(INsonEncoder encoder, Doodle value) { encoder.EncodeKeyValuePair("key-that-isnt-on-object", true); encoder.EncodeKeyValuePair("another_key", "with a value"); }