[]
Gets the index of the specified item.
public static int IndexOf<T>(this IDataCollection<T> dataCollection, T item) where T : class?
Public Shared Function IndexOf(Of T As Class)(dataCollection As IDataCollection(Of T), item As T) As Integer
| Type | Name | Description |
|---|---|---|
| IDataCollection<T> | dataCollection | The data collection. |
| T | item | The item that will be searched. |
| Type | Description |
|---|---|
| int |
| Name | Description |
|---|---|
| T |