AdvancedLauncher.Tools.WikiSuggestionProvider.GetSuggestions C# (CSharp) Méthode

GetSuggestions() public méthode

public GetSuggestions ( string filter ) : System.Collections.IEnumerable
filter string
Résultat System.Collections.IEnumerable
        public System.Collections.IEnumerable GetSuggestions(string filter)
        {
            if (string.IsNullOrEmpty(filter)) {
                return null;
            }
            if (filter.Length < 2) {
                return null;
            }
            try {
                var suggestions = Provider.OpenSearch(filter);
                if (suggestions != null) {
                    return suggestions.Select(x => new WikiProvider.Suggestion() { Value = x }).ToList();
                }
            } catch (Exception) { }
            return null;
        }