Volume Control
Application-specific hotkeys for Windows
VolumeControl.TypeExtensions.IReadOnlyListExtensions Class Reference

Extension methods for the IReadOnlyList<T> interface. More...

Collaboration diagram for VolumeControl.TypeExtensions.IReadOnlyListExtensions:

Static Public Member Functions

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...
 

Detailed Description

Extension methods for the IReadOnlyList<T> interface.

Member Function Documentation

◆ IndexOf< T >() [1/4]

static int VolumeControl.TypeExtensions.IReadOnlyListExtensions.IndexOf< T > ( this IReadOnlyList< T >  list,
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
TThe type of object in the IReadOnlyList<T>.
Parameters
list(implicit) The IReadOnlyList<T> to search.
itemThe 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,
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
TThe type of object in the IReadOnlyList<T>.
Parameters
list(implicit) The IReadOnlyList<T> to search.
itemThe object to locate in the IReadOnlyList<T>.
indexThe 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,
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
TThe type of object in the IReadOnlyList<T>.
Parameters
list(implicit) The IReadOnlyList<T> to search.
itemThe object to locate in the IReadOnlyList<T>.
indexThe starting index of the search.
countThe 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,
item,
out int  index 
)
static

Gets the index of the first occurrence of item in this list .

Template Parameters
TThe type of object in the IReadOnlyList<T>.
Parameters
list(implicit) The IReadOnlyList<T> to search.
itemThe object to locate in the IReadOnlyList<T>.
indexThe 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: