Example #1
0
        public static bool CheckAndAddSuggestion(IntellisenseSuggestion suggestion, IntellisenseSuggestionList suggestionList)
        {
            if (suggestionList.ContainsSuggestion(suggestion.DisplayText.Text))
            {
                return(false);
            }

            suggestionList.Add(suggestion);
            return(true);
        }
 protected override bool CheckAndAddSuggestion(IntellisenseSuggestionList suggestions, IntellisenseSuggestion candidate)
 {
     return(!suggestions.ContainsSuggestion(candidate.DisplayText.Text));
 }