What is Func, how and when is it used

前端 未结 8 1807
悲哀的现实
悲哀的现实 2020-11-27 10:53

What is Func<> and what is it used for?

8条回答
  •  隐瞒了意图╮
    2020-11-27 11:05

    It is just a predefined generic delegate. Using it you don't need to declare every delegate. There is another predefined delegate, Action, which is the same but returns void.

提交回复
热议问题