Method IndexOfOrNull
- Namespace
- Alternet.Base.Collections
- Assembly
- Alternet.UI.Common.dll
IndexOfOrNull(T)
Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.
public int? IndexOfOrNull(T item)
Parameters
item
TThe object to locate in the collection. The value can be null for reference types.
Returns
- int?
The zero-based index of the first occurrence of item within the entire collection, if found; otherwise,
null
.