开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜