Beispiel #1
0
 public override IEnumerable <string> GetDynamicMemberNames()
 {
     return(_ssslObject switch
     {
         SsslRecord record => record.GetKeys().Concat(Enumerable.Range(0, record.Count).Select(x => x.ToString())).Concat(new[] { "Count" }),
         SsslPair _ => new[] { "Key", "Value" },
         _ => Enumerable.Empty <string>(),
     });
Beispiel #2
0
 public void Write(int indent, SsslPair pair)
 {
     WriteEscape(pair.Key);
     _textWriter.Write(_spacing ? ": " : ":");
     pair.Value.WriteTo(this, indent);
 }