Microsoft.VisualStudio.Language.Spellchecker.GlobalDictionary.ShouldIgnoreWord C# (CSharp) Method

ShouldIgnoreWord() public method

public ShouldIgnoreWord ( string word ) : bool
word string
return bool
        public bool ShouldIgnoreWord(string word)
        {
            lock (_ignoreWords)
                return _ignoreWords.Contains(word);
        }

Usage Example

        public bool ShouldIgnoreWord(string word)
        {
            foreach (var dictionary in _bufferSpecificDictionaries)
            {
                if (dictionary.ShouldIgnoreWord(word))
                {
                    return(true);
                }
            }

            return(_globalDictionary.ShouldIgnoreWord(word));
        }