C# Lambda expressions: Why should I use them?

后端 未结 15 1520
栀梦
栀梦 2020-11-22 03:51

I have quickly read over the Microsoft Lambda Expression documentation.

This kind of example has helped me to understand better, though:

delegate in         


        
15条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 04:09

    A lot of the times, you are only using the functionality in one place, so making a method just clutters up the class.

提交回复
热议问题