MapServiceExtensionsForEachT 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
)
<ExtensionAttribute>
Public Shared Sub ForEach(Of T) (
enumT As IEnumerable(Of T),
nDegreeOfParallelism As Nullable(Of Integer),
actionT As Action(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void ForEach(
IEnumerable<T>^ enumT,
Nullable<int> nDegreeOfParallelism,
Action<T>^ actionT
)
[<ExtensionAttribute>]
static member ForEach :
enumT : IEnumerable<'T> *
nDegreeOfParallelism : Nullable<int> *
actionT : Action<'T> -> unit
Parameters
- enumT
- Type: System.Collections.GenericIEnumerableT
Elements to process. - nDegreeOfParallelism
- Type: SystemNullableInt32
Requested degree of parallelism. Multi-threading applies for values >= 2. - actionT
- Type: SystemActionT
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
IEnumerableT. 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