Exemplo n.º 1
0
        public string ToString(SsslSerializationFormat format)
        {
            var builder = new StringBuilder();

            using var textWriter = new StringWriter(builder);
            WriteTo(new TextSsslWriter(textWriter, format));
            return(builder.ToString());
        }
Exemplo n.º 2
0
 public TextSsslWriter(TextWriter textWriter, SsslSerializationFormat format)
 {
     _textWriter     = textWriter;
     _indentChar     = format.IndentChar;
     _newLine        = format.NewLine;
     _indentInterval = format.IndentInterval;
     InitialContext  = format.InitialIndent;
     _spacing        = format.Spacing;
 }