Click or drag to resize

ProcessDictionaryTKey, TValueBinarySearch(Int32, Int32, KeyValuePairTKey, TValue, IComparerKeyValuePairTKey, TValue) Method

This function doesn't have the same meaning in the ProcessDictionaryTKey, TValue as it does in ProcessQueueT, 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.181-beta
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  KeyValuePairTKey, TValue
The object to locate. The value can be null for reference types.
comparer  IComparerKeyValuePairTKey, 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