For example, why this method Max(ref int x, ref int y) is not considered overload of Max(int x, int y)? Why is the same with out?
For example, why this method Max(ref int x, ref int y) is not considered
Share
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.
This question presupposes a false premise.
are all overloads of a method named
Max. However, note that only one of the last two may be present in any given class definition. From the specification §3.6:[…]