Hello,
I have an issue with intellisense. Please consider the following sample:
switch ("a")
{
case "a":
var test = "a" as string;
if (test != null)
{
}
break;
}
If you open intellisense inside the if statement, the test variable is not present and doesn't show any available operations with the variable. It only works if you wrap the wole case body in curly braces.
[Modified 2 years ago]