Artemis Artemis
Artemis Artemis

Search Results for

    Class IEnumerableExtensions

    A static class providing IEnumerable<T> extensions

    Inheritance
    object
    IEnumerableExtensions
    Namespace: Artemis.Core
    Assembly: Artemis.Core.dll
    Syntax
    public static class IEnumerableExtensions

    Methods

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

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

    Declaration
    public static int IndexOf<T>(this IReadOnlyCollection<T> self, T elementToFind)
    Parameters
    Type Name Description
    IReadOnlyCollection<T> self

    The collection to search in

    T elementToFind

    The element to find

    Returns
    Type Description
    int

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

    Type Parameters
    Name Description
    T

    The type of element to find

    Content is available under the PolyForm Noncommercial License, by Artemis RGB.