public void AppendLastSharpSubstitution() { if (lastSharpSubstitutionStartIndex < 0 || lastSharpSubstitutionEndIndex < 0 || lastSharpSubstitutionStartIndex > lastSharpSubstitutionEndIndex) { throw new InvalidOperationException(); } builder.Append('<'); builder.AppendSubstring(lastSharpSubstitutionStartIndex, lastSharpSubstitutionEndIndex); builder.Append('>'); }