←Select platform

ForEach<T> Method

Summary

Extension method provides a foreach like wrapper for IEnumerable.

Syntax

C#
VB
C++
[ExtensionAttribute()] 
public static void ForEach<T>(  
   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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Dicom.AddIn Assembly
Click or drag to resize