Click or drag to resize

ProcessDictionary<TKey, TValue> .BinarySearch(Int32, Int32, KeyValuePair<TKey, TValue> , IComparer<KeyValuePair<TKey, TValue> > ) Method

This function doesn't have the same meaning in the ProcessDictionary<TKey, TValue> as it does in ProcessQueue<T>, so it is marked as hidden from the editor. However it returns IndexOfKey(TKey) so that it returns a value that at least makes sense in case it gets called.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public override int BinarySearch(
	int index,
	int count,
	KeyValuePair<TKey, TValue> item,
	IComparer<KeyValuePair<TKey, TValue>> comparer
)
View Source

Parameters

index  Int32
The zero-based starting index of the range to search.
count  Int32
The length of the range to search.
item  KeyValuePair<TKey, TValue>
The object to locate. The value can be null for reference types.
comparer  IComparer<KeyValuePair<TKey, TValue>>
The Generic.IComparer implementation to use when comparing elements -or- null to use the default comparer: Generic.Comparer(Of T).Default

Return Value

Int32
This method returns an Int32 that is the index of the item.Key.
See Also