public AutoCompleteSet(AutoCompleteContext context, ICollection <string> autoCompleteCollection) { Context = context; this.autoCompleteSet = new SortedSet <string>(autoCompleteCollection); enumerator = next(); }
public AutoCompleteSet GetAutoCompleteSet() { var context = new AutoCompleteContext(instance); foreach (var pair in autoCompleterList) { var autoCompleteSet = pair.Value.GetAutoCompleteSet(context); if (autoCompleteSet != null) { return(autoCompleteSet); } } return(null); }