HtmlLexicalAnalyzer.ReadUnknownDirective C# (CSharp) Метод

ReadUnknownDirective() приватный Метод

skips past unknown directives that start with "" character applies to directives such as DOCTYPE, etc that we do not presently support
private ReadUnknownDirective ( ) : void
Результат void
    private void ReadUnknownDirective()
    {
        // verify that we are at an unknown directive
        Debug.Assert(_previousCharacter == '<' && _nextCharacter == '!' && !(_lookAheadCharacter == '-' || _lookAheadCharacter == '['));

        // Let's treat this as empty text
        _nextTokenType = HtmlTokenType.Text;
        _nextToken.Length = 0;

        // advance to the next character
        this.GetNextCharacter();

        // skip to the first tag end we find
        while (!(_nextCharacter == '>' && !IsNextCharacterEntity) && !this.IsAtEndOfStream)
        {
            this.GetNextCharacter();
        }

        if (!this.IsAtEndOfStream)
        {
            // advance past the tag end
            this.GetNextCharacter();
        }
    }