Method Signature in C#

前端 未结 7 810
误落风尘
误落风尘 2020-11-27 13:36

What is the Method Signature in the following

int DoSomething(int a, int b);

Return type is a part of signature or not???

7条回答
  •  误落风尘
    2020-11-27 14:11

    The signature does not contain the return type. Neither the parameter names. In your case it would be DoSomething(int, int)

提交回复
热议问题