Method ForEach
ForEach<T>(IEnumerable<T>, Action<T>)
Declaration
public static IEnumerable<T> ForEach<T>(this IEnumerable<T> enumerable, Action<T> action)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | enumerable | |
| Action<T> | action |
Returns
| Type | Description |
|---|---|
| IEnumerable<T> |
Type Parameters
| Name | Description |
|---|---|
| T |
ForEach<T>(T[], Action<T>)
Declaration
public static T[] ForEach<T>(this T[] enumerable, Action<T> action)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | enumerable | |
| Action<T> | action |
Returns
| Type | Description |
|---|---|
| T[] |
Type Parameters
| Name | Description |
|---|---|
| T |