I know the below is illegal in the same code block in C# but is there any possible way around it apart from the obvious (naming them differently) ?
string test;
int test;
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.
Ambiguity
Ok, let’s assume that is valid and you can do
should
result in
"Hallo” or in"1"?It would just not be possible for the compiler to know what object you are refering to in some circumstances as you can see. I hope this answers your question.