Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
Jarno Peschier
Answer by peSHIr for When is it too much "lambda action"? - http://stackoverflow.com/questio...
I agree with awe: for small scale reuse inside a method (or even a class) this is perfect. Like the string.Format examples. I use this quite often. It's basically the same thing as using a local variable for an intermediate value that you use more than once, but for code. Your second example seems to be pushing it a bit. Somehow this gives me the feeling a private method AddSurfaceData (possibly static?) would be a better a fit. That is of course outside of the context that you have, so use your own good judgement. - Jarno Peschier