ACAT.Lib.Extension.AlphabetScannerCommon.contains C# (CSharp) Method

contains() private method

Checks if the word is in the list
private contains ( IEnumerable list, int count, String word ) : bool
list IEnumerable list of words
count int how many words?
word String word to check
return bool
        private bool contains(IEnumerable<String> list, int count, String word)
        {
            for (int ii = 0; ii < count && ii < list.Count(); ii++)
            {
                if (String.Compare(word, list.ElementAt(ii), true) == 0)
                {
                    return true;
                }
            }

            return false;
        }