ForEach<T> Method

Summary

Extension method provides a foreach like wrapper for IEnumerable.

Syntax
C#
VB
C++
public static void ForEach<T>( 
   this IEnumerable<T> source, 
   Action<T> action 
) 
  
<ExtensionAttribute()> 
Public Shared Sub ForEach(Of T)( _ 
   ByVal source As IEnumerable(Of T), _ 
   ByVal action As Action(Of T) _ 
)  
[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

Help Version 20.0.2019.11.25
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly