A
Afzal Mazhar
What is wrong with this?
class Example1
{
public static long myClassVar;
public static void Main()
{
{
long myClassVar = 5;
}
myClassVar = 36;
}
}
It will not compile.....why? I do not need a "fix" but rather am confused
why this will not compile.
It gives an error at myClassVar=36 that is conflicts with declaration
Example1.myClassVar
Thanks
Afzal
class Example1
{
public static long myClassVar;
public static void Main()
{
{
long myClassVar = 5;
}
myClassVar = 36;
}
}
It will not compile.....why? I do not need a "fix" but rather am confused
why this will not compile.
It gives an error at myClassVar=36 that is conflicts with declaration
Example1.myClassVar
Thanks
Afzal