Miner.Responder.Shared.Extensions Namespace > EnumerableExtensions Class : ForEach<T> Method |
'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 )
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