Lambda expression returns method?
Hi I do not understand statement that "lambda expressions return methods" that I read in a book I currently stud开发者_C百科y. On MSDN I did not find anything which could help me.
In C#/.NET you can save a reference to method in variable. This is done using delegates.
Lambda expressions can created a method, that can be saved in variable or returned from method.
If i am not wrong,what it means is: Lamda Expression can return a function delegate
Func<in T, out TResult>
http://msdn.microsoft.com/en-us/library/bb397687.aspx
http://msdn.microsoft.com/en-us/library/bb397687.aspx
http://msdn.microsoft.com/en-us/magazine/cc163362.aspx
精彩评论