Click or drag to resize

TimeIntervalCollection<T>.IndexOf Method (TimeInterval<T>)

Finds the index of a given TimeInterval<T> in the collection. This method requires that the given interval exactly match an interval in the collection. Intervals with different time standards, different data, or even slightly different values due to floating point noise will be considered to be different.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public int IndexOf(
	TimeInterval<T> item
)

Parameters

item
Type: AGI.Foundation.Time.TimeInterval<T>
The interval to find.

Return Value

Type: Int32
The index of the interval, or -1 if the interval does not exist in the collection.

Implements

IList<T>.IndexOf(T)
See Also