Пример #1
0
 public static string Encode( object obj, EncodeOptions options )
 {
     var instance = new Encoder( options );
     instance.EncodeValue( obj, false );
     return instance.builder.ToString();
 }
Пример #2
0
 Encoder( EncodeOptions options )
 {
     this.options = options;
     builder = new StringBuilder();
     indent = 0;
 }