Search Results for

    Method ForEach

    ForEach<T>(T[], Action<T>)

    Performs the specified action on each element of the Array.

    Declaration
    public static void ForEach<T>(this T[] source, Action<T> action)
    Parameters
    Type Name Description
    T[] source

    Tye Array whose element will be handled by action

    Action<T> action

    The specified action on each element of source

    Type Parameters
    Name Description
    T

    Type of the element

    ForEach<T>(Array, Action<T>)

    Declaration
    public static void ForEach<T>(this Array source, Action<T> action)
    Parameters
    Type Name Description
    Array source
    Action<T> action
    Type Parameters
    Name Description
    T
    In This Article