T
Any type.
Platform Core .NET Assemblies API
ForEach<T>(IEnumerable<T>,Predicate<T>,Action<T>) Method
See Also  Send Feedback
Terrasoft.Common Namespace > CollectionUtilities Class > ForEach Method : ForEach<T>(IEnumerable<T>,Predicate<T>,Action<T>) Method
source
Source.
match
Criteria.
action
Assigned method.

Glossary Item Box

Assigns a method to each element of the source that meets the specified criteria.

Syntax

 
C#
 
 

Parameters

source
Source.
match
Criteria.
action
Assigned method.

Type Parameters

T
Any type.

Exceptions

ExceptionDescription
ArgumentNullOrEmptyExceptionIf one of the parameters passed in (match, action) is empty.

Remarks

Extensible type for the classes that implement IEnumerable interface.

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

© Terrasoft 2002-2018.