Click or drag to resize
CMSParallel.ForEach<TSource> Method (ICollection<TSource>, Action<TSource>, ParallelOptions)
Executes a for each operation on an System.Collections.IEnumerable{TSource} in which iterations may run in parallel. Wraps the operation into CMSThread to ensure proper context.

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 12.0.0
Syntax
C#
public static ParallelLoopResult ForEach<TSource>(
	ICollection<TSource> source,
	Action<TSource> body,
	ParallelOptions options
)

Parameters

source
Type: System.Collections.Generic.ICollection<TSource>
Parallel sources
body
Type: System.Action<TSource>
Executing body
options
Type: System.Threading.Tasks.ParallelOptions
Options for executing

Type Parameters

TSource

Return Value

Type: ParallelLoopResult
See Also