Cannot Convert from Method Group to Object - C#
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to get familiar with C# and tried out the following program - it just outputs the average of the even numbers in the Array. Would be great if someone could highlight the problem here. 回答1: You need select.Average() (with the parens). 回答2: The Missing Parenthesis () is the reason for your error.It should be Average() without a Parenthesis,it is understood as a method group.The average method could have multiple overloads and it is unclear which specific overloaded method needs to be invoked.But when you mention the parenthesis it