FSO.IDE.Common.ObjectRegistryEntry.SearchMatch C# (CSharp) Method

SearchMatch() public method

public SearchMatch ( string words ) : bool
words string
return bool
        public bool SearchMatch(string[] words)
        {
            if (words == null) return true;
            if (Total == null) Total = (Filename + " " + Name).ToLowerInvariant();

            LastSearchScore = 0;
            foreach (var word in words)
            {
                if (Total.Contains(word)) LastSearchScore++;
            }
            return (LastSearchScore >= words.Length);
        }
ObjectRegistryEntry