ArcFM Solution Developer Guide
ForEach<T> Method


Enumerates a collection of items and performs an action on each item
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Sub ForEach(Of T)( _
   ByVal collection As System.Collections.Generic.IEnumerable(Of T), _
   ByVal action As System.Action(Of T) _
) 
'Usage
 
Dim collection As System.Collections.Generic.IEnumerable(Of T)
Dim action As System.Action(Of T)
 
EnumerableExtensions.ForEach(Of T)(collection, action)
[System.Runtime.CompilerServices.Extension()]
public static void ForEach<T>( 
   System.Collections.Generic.IEnumerable<T> collection,
   System.Action<T> action
)

Parameters

collection
action

Type Parameters

T
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

EnumerableExtensions Class
EnumerableExtensions Members

 

 


Send Comment