T
IdeaBlade DevForce 2010 Help Reference
ForEach<T>(IEnumerable<T>,Action<T,Int32>) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > EnumerableFns Class > ForEach Method : ForEach<T>(IEnumerable<T>,Action<T,Int32>) Method



items
action
Delegate taking a T and an index value
Enumerate an indexed collection in cache performing the specified action on each item.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Sub ForEach(Of T)( _
   ByVal items As IEnumerable(Of T), _
   ByVal action As Action(Of T,Integer) _
) 
Visual Basic (Usage)Copy Code
Dim items As IEnumerable(Of T)
Dim action As Action(Of T,Integer)
 
EnumerableFns.ForEach(Of T)(items, action)
C# 
[ExtensionAttribute()]
public static void ForEach<T>( 
   IEnumerable<T> items,
   Action<T,int> action
)
C++/CLI 
[ExtensionAttribute()]
public:
static void ForEachgeneric<typename T>
( 
   IEnumerable<T^>^ items,
   Action<T^,int>^ action
) 

Parameters

items
action
Delegate taking a T and an index value

Type Parameters

T

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.