Click or drag to resize

TimeIntervalCollectionIndexOf Method (TimeInterval)

Finds the index of a given TimeInterval in the collection. This method requires that the given interval exactly match an interval in the collection. Intervals with different time standards 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.3.420.0 (24.3.420.0)
Syntax
public int IndexOf(
	TimeInterval item
)

Parameters

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