Why don't Funcs accept more than 16 arguments?

后端 未结 6 965
情话喂你
情话喂你 2021-02-05 04:54

Since Javascript is the language that I am the most proficient at, I am familiar with using functions as first-class objects. I had thought that C# lacked this feature, but then

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-05 05:19

    You're hoping for something like variadic type arguments which C# lacks. C# requires the arity of generic types to be fixed, therefore the heinous proliferation of Func, Action, and Tuple types.

    If you're language shopping, this feature was added in C++11, but you should probably just use jQuery. :-)

提交回复
热议问题