开发者

Lambda expression returns method?

开发者 https://www.devze.com 2023-02-09 09:36 出处:网络
Hi I do not understand statement that \"lambda expressions return methods\" that I read in a book I currently stud开发者_C百科y.

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

精彩评论

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