Extension methods for the IReadOnlyList<T> interface.
More...
|
static int | IndexOf< T > (this IReadOnlyList< T > list, T item, int index, int count) |
| Returns the index of the first occurrence of item within the given range in this list. The list is searched forwards from beginning to end. The elements of the list are compared to the given value using the object.Equals(object?) method. More...
|
|
static int | IndexOf< T > (this IReadOnlyList< T > list, T item, int index) |
| Returns the index of the first occurrence of item within the given range in this list. The list is searched forwards from beginning to end. The elements of the list are compared to the given value using the object.Equals(object?) method. More...
|
|
static int | IndexOf< T > (this IReadOnlyList< T > list, T item) |
| Returns the index of the first occurrence of item in this list. The list is searched forwards from beginning to end. The elements of the list are compared to the given value using the object.Equals(object?) method. More...
|
|
static bool | IndexOf< T > (this IReadOnlyList< T > list, T item, out int index) |
| Gets the index of the first occurrence of item in this list . More...
|
|
Extension methods for the IReadOnlyList<T> interface.
◆ IndexOf< T >() [1/4]
static int VolumeControl.TypeExtensions.IReadOnlyListExtensions.IndexOf< T > |
( |
this IReadOnlyList< T > |
list, |
|
|
T |
item |
|
) |
| |
|
static |
Returns the index of the first occurrence of item in this list. The list is searched forwards from beginning to end. The elements of the list are compared to the given value using the object.Equals(object?) method.
- Template Parameters
-
T | The type of object in the IReadOnlyList<T>. |
- Parameters
-
list | (implicit) The IReadOnlyList<T> to search. |
item | The object to locate in the IReadOnlyList<T>. |
- Returns
- The index of item if found in the list; otherwise -1.
◆ IndexOf< T >() [2/4]
static int VolumeControl.TypeExtensions.IReadOnlyListExtensions.IndexOf< T > |
( |
this IReadOnlyList< T > |
list, |
|
|
T |
item, |
|
|
int |
index |
|
) |
| |
|
static |
Returns the index of the first occurrence of item within the given range in this list. The list is searched forwards from beginning to end. The elements of the list are compared to the given value using the object.Equals(object?) method.
- Template Parameters
-
T | The type of object in the IReadOnlyList<T>. |
- Parameters
-
list | (implicit) The IReadOnlyList<T> to search. |
item | The object to locate in the IReadOnlyList<T>. |
index | The starting index of the search. |
- Returns
- The index of item if found in the list; otherwise -1.
◆ IndexOf< T >() [3/4]
static int VolumeControl.TypeExtensions.IReadOnlyListExtensions.IndexOf< T > |
( |
this IReadOnlyList< T > |
list, |
|
|
T |
item, |
|
|
int |
index, |
|
|
int |
count |
|
) |
| |
|
static |
Returns the index of the first occurrence of item within the given range in this list. The list is searched forwards from beginning to end. The elements of the list are compared to the given value using the object.Equals(object?) method.
- Template Parameters
-
T | The type of object in the IReadOnlyList<T>. |
- Parameters
-
list | (implicit) The IReadOnlyList<T> to search. |
item | The object to locate in the IReadOnlyList<T>. |
index | The starting index of the search. |
count | The number of elements to search. |
- Returns
- The index of item if found in the list; otherwise -1.
◆ IndexOf< T >() [4/4]
static bool VolumeControl.TypeExtensions.IReadOnlyListExtensions.IndexOf< T > |
( |
this IReadOnlyList< T > |
list, |
|
|
T |
item, |
|
|
out int |
index |
|
) |
| |
|
static |
Gets the index of the first occurrence of item in this list .
- Template Parameters
-
T | The type of object in the IReadOnlyList<T>. |
- Parameters
-
list | (implicit) The IReadOnlyList<T> to search. |
item | The object to locate in the IReadOnlyList<T>. |
index | The index of item if found in the list; otherwise -1. |
- Returns
true
when item was found in the list; otherwise false
.
The documentation for this class was generated from the following file: