JK
Search Results for

    Show / Hide Table of Contents

    Class EnumerableExtensions

    Inheritance
    System.Object
    EnumerableExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: JK.Common.Extensions
    Assembly: JK.Common.dll
    Syntax
    public static class EnumerableExtensions

    Methods

    | Improve this Doc View Source

    AsIndexedEnumerable<T>(IEnumerable<T>)

    Declaration
    public static IEnumerable<(T item, int index)> AsIndexedEnumerable<T>(this IEnumerable<T> source)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> source
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.ValueTuple<T, System.Int32>>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    DistinctBy<TSource, TValue>(IEnumerable<TSource>, Func<TSource, TValue>)

    Declaration
    public static IEnumerable<TSource> DistinctBy<TSource, TValue>(this IEnumerable<TSource> source, Func<TSource, TValue> selector)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<TSource> source
    System.Func<TSource, TValue> selector
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TSource>
    Type Parameters
    Name Description
    TSource
    TValue
    | Improve this Doc View Source

    ForEach<T>(IEnumerable<T>, in Action<T>)

    Declaration
    public static void ForEach<T>(this IEnumerable<T> source, in Action<T> action)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> source
    System.Action<T> action
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © Jeremy Knight. Generated with DocFX