Table of Contents

Class IEnumerableExtensions

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

A static class providing IEnumerable<T> extensions

public static class IEnumerableExtensions
Inheritance
object
IEnumerableExtensions

Methods

IndexOf<T>(IReadOnlyCollection<T>, T)

Returns the index of the provided element inside the read only collection

public static int IndexOf<T>(this IReadOnlyCollection<T> self, T elementToFind)

Parameters

self IReadOnlyCollection<T>

The collection to search in

elementToFind T

The element to find

Returns

int

If found, the index of the element to find; otherwise -1

Type Parameters

T

The type of element to find