Cuemon .NET Framework
ForEach<TSource,T>(IEnumerable<TSource>,Act<TSource,T>,T) Method

The type of the source in the encapsulated foreach-loop.
The type of the parameter of the delegate method.
The sequence that is iterated in the encapsulated foreach-loop.
The delegate that is invoked once per iteration.
The parameter of the delegate method.
Provides a generic way of executing a foreach-loop while providing ways to encapsulate and re-use existing code.
Syntax
'Declaration
 
Public Overloads Shared Sub ForEach
    (Of TSource,T)( _
   ByVal source As IEnumerable(Of TSource), _
   ByVal method As Cuemon.Act(Of TSource,T), _
   ByVal arg As T _
) 
public static void ForEach<TSource,T>( 
   IEnumerable<TSource> source,
   Cuemon.Act<TSource,T> method,
   T arg
)

Parameters

source
The sequence that is iterated in the encapsulated foreach-loop.
method
The delegate that is invoked once per iteration.
arg
The parameter of the delegate method.

Type Parameters

TSource
The type of the source in the encapsulated foreach-loop.
T
The type of the parameter of the delegate method.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionmethod is null -or- source is null.
Requirements

Target Platforms: Windows 8, Windows Server 2012, 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

LoopUtility Class
LoopUtility Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback