ArcFM Responder Mobile Developer Guide
ForEach<T> Method (EnumerableExtensions)






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
)
public procedure ForEach( 
    collection: System.Collections.Generic.IEnumerable;
    action: System.Action
); static; 
System.Runtime.CompilerServices.ExtensionAttribute()
public static function ForEach( 
   collection : System.Collections.Generic.IEnumerable,
   action : System.Action
);
[System.Runtime.CompilerServices.Extension()]
public: static void ForEach<T>( 
   System.Collections.Generic.IEnumerable<T*>* collection,
   System.Action<T*>* action
) 
[System.Runtime.CompilerServices.Extension()]
public:
static void ForEachgeneric<typename T>
( 
   System.Collections.Generic.IEnumerable<T^>^ collection,
   System.Action<T^>^ action
) 

Parameters

collection
action

Type Parameters

T
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EnumerableExtensions Class
EnumerableExtensions Members

Send Feedback