Click or drag to resize

ExtensionsForEachAggregatingExceptionsT Method

Executes an action for each item in a materialized collection, accumulating any exceptions and throwing them as an AggregateException at the end.

Namespace: RAYLASE.Shared
Assembly: RAYLASE.Shared (in RAYLASE.Shared.dll) Version: 2.42.0
Syntax
C#
public static void ForEachAggregatingExceptions<T>(
	this IReadOnlyCollection<T> source,
	Action<T> action
)

Parameters

source  IReadOnlyCollectionT

[Missing <param name="source"/> documentation for "M:RAYLASE.Shared.Extensions.ForEachAggregatingExceptions``1(System.Collections.Generic.IReadOnlyCollection{``0},System.Action{``0})"]

action  ActionT

[Missing <param name="action"/> documentation for "M:RAYLASE.Shared.Extensions.ForEachAggregatingExceptions``1(System.Collections.Generic.IReadOnlyCollection{``0},System.Action{``0})"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:RAYLASE.Shared.Extensions.ForEachAggregatingExceptions``1(System.Collections.Generic.IReadOnlyCollection{``0},System.Action{``0})"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyCollectionT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also