Class EnumerableExt
General extensions to LINQ.
Inheritance
System.Object
EnumerableExt
Syntax
public static class EnumerableExt
Methods
Each<T>(IEnumerable<T>, Action<T, Int32>)
Declaration
public static void Each<T>(this IEnumerable<T> source, Action<T, int> fn)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
source |
|
System.Action<T, System.Int32> |
fn |
|
Type Parameters
Each<T>(IEnumerable<T>, Action<T>)
Declaration
public static void Each<T>(this IEnumerable<T> source, Action<T> fn)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
source |
|
System.Action<T> |
fn |
|
Type Parameters
FromItems<T>(T[])
Convert a variable length argument list of items to an enumerable.
Declaration
public static IEnumerable<T> FromItems<T>(params T[] items)
Parameters
Type |
Name |
Description |
T[] |
items |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters