Table of Contents

Class IEnumerableExtensions

Namespace
GroupeIsa.Neos.Shared.Extensions
Assembly
GroupeIsa.Neos.Shared.dll

Provides extension methods for IEnumerable<T>.

public static class IEnumerableExtensions
Inheritance
IEnumerableExtensions
Inherited Members

Methods

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

Finds the index of the first occurrence of a specified item in the IEnumerable<T>.

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

Parameters

source IEnumerable<T>

The collection to search.

item T

The item to locate in the collection.

Returns

int

The zero-based index of the first occurrence of the item in the collection, or -1 if the item is not found.

Type Parameters

T

The type of the elements in the collection.