Index<T>.TryLookup Method

Tries to find the specified key in the index.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public abstract bool TryLookup(
	T key,
	out int index
)

Parameters

key  T
The key to locate.
index  Int32
If key was found, the position of the first occurrence of key in the index; otherwise undefined.

Return Value

Boolean
true if key was found in the index; otherwise false.

See Also