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
)
Public Function IndexOf (
item As TimeInterval
) As Integer
public:
virtual int IndexOf(
TimeInterval^ item
) sealed
abstract IndexOf :
item : TimeInterval -> int
override IndexOf :
item : TimeInterval -> int
Parameters
- item
- Type: AGI.Foundation.TimeTimeInterval
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