A
Andy Fish
this fragment of c# does not compile:
{
{
string s = "a";
}
string s = "a";
}
It says that the 2 declarations conflict. AFAIK the scope of a variable
declaration is from the point in the source file it is declared until the
end of the enclosing block. By this definition they don't conflict
Andy
{
{
string s = "a";
}
string s = "a";
}
It says that the 2 declarations conflict. AFAIK the scope of a variable
declaration is from the point in the source file it is declared until the
end of the enclosing block. By this definition they don't conflict
Andy