Convert for loop by using lambda(C#3.0)
Posted
by Newbie
on Stack Overflow
See other posts from Stack Overflow
or by Newbie
Published on 2010-05-06T13:10:45Z
Indexed on
2010/05/06
13:18 UTC
Read the original article
Hit count: 114
c#3.0
How to convert the below code
double sumxy = 0;
for (int i = 0; i < x.Count; i++)
{sumxy = sumxy + (x[i] * y[i]);}
by using lambda
I am using C#3.0. x and y are list of double numbers
Thanks
© Stack Overflow or respective owner