C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System.Collections.Generic
List(T) Class
List(T) Methods
Add Method
AddRange Method
AsReadOnly Method
BinarySearch Method
Clear Method
Contains Method
ConvertAll(TOutput) Method
CopyTo Method
Exists Method
Find Method
FindAll Method
FindIndex Method
ForEach Method
GetEnumerator Method
IndexOf Method
Insert Method
InsertRange Method
Remove Method
RemoveAll Method
RemoveAt Method
RemoveRange Method
Reverse Method
Sort Method
ToArray Method
TrueForAll Method
List
T
ForEach Method
Performs the specified action on each element of the
List
T
.
Namespace:
System.Collections.Generic
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
void
ForEach
(
Action
<T>
action
)
Parameters
action
Type:
System
Action
T
The
Action
T
delegate to perform on each element of the
List
T
.
Exceptions
Exception
Condition
ArgumentNullException
action
is null.
See Also
Reference
List
T
Class
System.Collections.Generic Namespace