ToPlainString() public method

public ToPlainString ( ) : string
return string
Ejemplo n.º 1
0
        protected override string ToString(bool formatted)
        {
            if (!ShouldBuildElement())
            {
                return(string.Empty);
            }

            var span         = new XSpan(children.ToArray());
            var spanToString = formatted ? span.ToString() : span.ToPlainString();

            if (BlockStyle == BlockStyle.Indented)
            {
                spanToString = Indent(spanToString);
            }

            return(spanToString + Environment.NewLine);
        }
Ejemplo n.º 2
0
        protected override string ToString(bool formatted)
        {
            if (!ShouldBuildElement())
                return string.Empty;

            var span = new XSpan(children.ToArray());
            var spanToString = formatted ? span.ToString() : span.ToPlainString();
            if (BlockStyle == BlockStyle.Indented)
            {
                spanToString = Indent(spanToString);
            }

            return spanToString + Environment.NewLine;
        }