HtmlLexicalAnalyzer.IsGoodForName C# (CSharp) Method

IsGoodForName() private method

checks if a character can be used as a non-starting character in a name uses the IsExtender and IsCombiningCharacter predicates to see if a character is an extender or a combining character
private IsGoodForName ( char character ) : bool
character char /// character to be checked for validity in a name ///
return bool
    private bool IsGoodForName(char character)
    {
        // we are not concerned with escaped characters in names
        // we assume that character entities are allowed as part of a name
        return
            this.IsGoodForNameStart(character) ||
            character == '.' ||
            character == '-' ||
            character == ':' ||
            Char.IsDigit(character) ||
            IsCombiningCharacter(character) ||
            IsExtender(character);
    }