SuggestionCollection.BinarySearch(SuggestionBase, IComparer<SuggestionBase>) Method
In This Article
Searches a collection for a specific suggestion, using a binary search algorithm and the specified IComparer interface.
Namespace: DevExpress.XtraSpellChecker
Assembly: DevExpress.SpellChecker.v24.2.Core.dll
NuGet Package: DevExpress.SpellChecker.Core
#Declaration
public int BinarySearch(
SuggestionBase item,
IComparer<SuggestionBase> comparer
)
#Parameters
Name | Type | Description |
---|---|---|
item | Suggestion |
The Suggestion |
comparer | IComparer<Suggestion |
The IComparer |
#Returns
Type | Description |
---|---|
Int32 | The zero-based index of an item in the Suggestion |
See Also