/*
Mastering Visual C# .NET
by Jason Price, Mike Gunderloy
Publisher: Sybex;
ISBN: 0782129110
*/
/*
Example2_6.cs illustrates scope
*/
public class Example2_6
{
public static void Main()
{
{
int myValue = 1;
}
myValue = 2; // causes error
}
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok