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

The type of the source in the encapsulated foreach-loop.
The sequence that is iterated in the encapsulated foreach-loop.
The delegate that is invoked once per iteration.
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)( _
   ByVal source As IEnumerable(Of TSource), _
   ByVal method As Cuemon.Act(Of TSource) _
) 
public static void ForEach<TSource>( 
   IEnumerable<TSource> source,
   Cuemon.Act<TSource> method
)

Parameters

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

Type Parameters

TSource
The type of the source in the encapsulated foreach-loop.
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