M
Matt
Hi There,
Can anyone explain me the real advantages of (other than syntax)
lambda expressions over anonymous delegates?
delegate int F(int a);
F fLambda = a => a++;
F fAnonymous = delegate(int a) { return a++; };
fLambda(1);
fAnonymous(1);
Thanks,
Matt
Can anyone explain me the real advantages of (other than syntax)
lambda expressions over anonymous delegates?
advantage for one over the other.From the following example that I tried, I couldn't derive any real
delegate int F(int a);
F fLambda = a => a++;
F fAnonymous = delegate(int a) { return a++; };
fLambda(1);
fAnonymous(1);
Thanks,
Matt