What is a method group in C#?

前端 未结 5 2099
夕颜
夕颜 2020-11-22 01:46

I have often encountered an error such as \"cannot convert from \'method group\' to \'string\'\" in cases like:

var list = new List();
// ...          


        
5条回答
  •  情书的邮戳
    2020-11-22 01:59

    The ToString function has many overloads - the method group would be the group consisting of all the different overloads for that function.

提交回复
热议问题