Accepted answer

Which version of Visual Studio are you using? I've just tried compiling your code with the C# 4 compiler, and got this:

Test.cs(12,42): error CS0619: 'Program.Value' is obsolete: 'Do not use'

I wonder if this was a bug in the C# 3 compiler (shipping with VS2008/.NET 3.5) which was fixed for the C# 4 compiler.

Related Articles