Foreach/For loop alternative lambda function?
Posted
by mamu
on Stack Overflow
See other posts from Stack Overflow
or by mamu
Published on 2010-04-23T14:22:25Z
Indexed on
2010/04/23
14:23 UTC
Read the original article
Hit count: 199
c#
We use for or foreach to loop through collections and process each entries.
Is there any alternative in all those new lambda functions for collections in C#?
Traditional way of doing
foreach(var v in vs)
{
Console.write(v);
}
Is there anything like?
vs.foreach(v => console.write(v))
© Stack Overflow or respective owner