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.2.419.0 (24.2.419.0)
Syntax public int IndexOf(
TimeInterval<T> item
)
Public Function IndexOf (
item As TimeInterval(Of T)
) As Integer
public:
virtual int IndexOf(
TimeInterval<T>^ item
) sealed
abstract IndexOf :
item : TimeInterval<'T> -> int
override IndexOf :
item : TimeInterval<'T> -> int
Parameters
- item
- Type: AGI.Foundation.TimeTimeIntervalT
The interval to find.
Return Value
Type:
Int32The index of the interval, or -1 if the interval does not exist in the collection.
Implements
IListTIndexOf(T)See Also