[Extension()] public static int IndexOf<T>( IList<T> list, Nullable<int> id ) where T: IEntityWithTypedId<int>
Parameters
- list
- The list of items to search.
- id
- The id of the item to search for.
Type Parameters
- T
- The type of the list.
Return Value
Index of the object.