LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly)
LEAD Technologies, Inc

ForEach<T> Method






The IEnumerable object to iterate over.
The source enumeration
The action to perform.
Extenstion method provides a foreach like wrapper for IEnumerable.
Syntax
[ExtensionAttribute()]
public static void ForEach<T>( 
   IEnumerable<T> source,
   Action<T> action
)
'Declaration
 
<ExtensionAttribute()>
Public Shared Sub ForEach(Of T)( _
   ByVal source As IEnumerable(Of T), _
   ByVal action As Action(Of T) _
) 
'Usage
 
Dim source As IEnumerable(Of T)
Dim action As Action(Of T)
 
Extensions.ForEach(Of T)(source, action)
ExtensionAttribute()
 function Leadtools.Dicom.AddIn.Extensions.ForEach( 
   source ,
   action 
)
[ExtensionAttribute()]
public:
static void ForEachgeneric<typename T>
( 
   IEnumerable<T^>^ source,
   Action<T^>^ action
) 

Parameters

source
The source enumeration
action
The action to perform.

Type Parameters

T
The IEnumerable object to iterate over.
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

Extensions Class
Extensions Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features