Click or drag to resize

TimeIntervalCollectionTIndexOf Method (TimeIntervalT)

Finds the index of a given TimeIntervalT 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: 24.1.418.0 (24.1.418.0)
Syntax
public int IndexOf(
	TimeInterval<T> item
)

Parameters

item
Type: AGI.Foundation.TimeTimeIntervalT
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

IListTIndexOf(T)
See Also