Click or drag to resize

MapServiceExtensions.ForEach<T> Method

Processes the given elements through a given action, either in parallel or in sequence, depending on the requested degree of parallelism.

Namespace:  Ptv.XServer.Controls.Map.Tools.Reprojection
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static void ForEach<T>(
	this IEnumerable<T> enumT,
	Nullable<int> nDegreeOfParallelism,
	Action<T> actionT
)

Parameters

enumT
Type: System.Collections.Generic.IEnumerable<T>
Elements to process.
nDegreeOfParallelism
Type: System.Nullable<Int32>
Requested degree of parallelism. Multi-threading applies for values >= 2.
actionT
Type: System.Action<T>
Action that processes an element.

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<T>. 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