The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

ListEx.

IndexOf<T>(IEnumerable<T>, T, IEqualityComparer<T>) Method

Summary

Finds the index of the current item using the specified equality comparer.
Namespace
DynamicData
Containing Type
ListEx

Syntax

public static int IndexOf<T>(this IEnumerable<T> source, T item, IEqualityComparer<T> equalityComparer)

Type Parameters

Name Description
T The type of the item.

Parameters

Name Type Description
source IEnumerable<T> The source enumerable.
item T The item to get the index of.
equalityComparer IEqualityComparer<T> Use to determine object equality.

Return Value

Type Description
int The index.