private void EndIfConditionalCommentHandler(MarkupParsingContext context, HtmlConditionalCommentType type)
{
_currentNodeType = HtmlNodeType.EndIfConditionalComment;
string endIfComment;
switch (type)
{
case HtmlConditionalCommentType.Hidden:
endIfComment = "<![endif]-->";
break;
case HtmlConditionalCommentType.RevealedValidating:
case HtmlConditionalCommentType.RevealedValidatingSimplified:
endIfComment = "<!--<![endif]-->";
break;
case HtmlConditionalCommentType.Revealed:
endIfComment = "<![endif]>";
break;
default:
throw new NotSupportedException();
}
_buffer.Add(endIfComment);
}