Please guide me in C# method over loading: does it depend on method signature, return types or number of parameters ? What changes are essential to say that a method is being or can be overloaded?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends of the signature – that is the numbers and types of the arguments.
You can have different overloads with the same number of parameters, but of different types. For example, see the
Convertclass – many overloads of a method that take one argument but each overload takes a different type.