Exemplo n.º 1
0
        protected override void FormatCore(StringBuilder sb)
        {
            Contracts.AssertValue(sb);

            sb.AppendFormat(CultureInfo.CurrentCulture, TexlStrings.FormatSpan_Min_Lim(), Tok.Span.Min, Tok.Span.Lim);

            if (Node != null)
            {
                sb.AppendFormat(CultureInfo.CurrentCulture, TexlStrings.InfoNode_Node(), Node.ToString());
            }
            else
            {
                sb.AppendFormat(CultureInfo.CurrentCulture, TexlStrings.InfoTok_Tok(), Tok.ToString());
            }

            sb.AppendFormat(CultureInfo.CurrentCulture, TexlStrings.FormatErrorSeparator());
            base.FormatCore(sb);
        }