[ROOT] / doc / toc / ARCCore / Class / Extensions / ForEach / __TOCDet
Key | Value |
---|---|
Assembly | ARCCore |
DocFragType | ClassMember |
IsInherited | -False- |
IsInheritedDoc | -False- |
Lines | -9- |
Name | ForEach |
Namespace | ARCCore |
Type | Extensions |
ClassMemberAttribute
Key | Value |
---|---|
DeclaringType | Extensions |
MethodName | ForEach |
MethodSignature | Void ForEach[T](System.Collections.Generic.IEnumerable`1[T], System.Action`1[T]) |
Useful when we want to write collection.ForEach( ... ) instead of
collection.ToList().ForEach ( ... ) (Bad idea performance-wise)
or
foreach (var t in collection) which is more verbose
Discussion about this at
http://blogs.msdn.com/b/ericlippert/archive/2009/05/18/foreach-vs-foreach.aspx
(short version http://stackoverflow.com/questions/10299458/is-the-listt-foreach-method-gone
Generated 2025-05-23 20:57:17.144 UTC