Opportunities to use Func<> to improve code readability

前端 未结 6 1027
野趣味
野趣味 2021-01-19 08:26

Today I finally \"got\" the Func<> delegate and saw how I could use it to make some of my less readable LINQ queries (hopefully) more readable.

Here\'s a simpl

6条回答
  •  孤街浪徒
    2021-01-19 09:02

    I usually only do it when I want to reuse the delegate. Otherwise, not often.

提交回复
热议问题