Given the following code snippet:
using System; using Foo = System.Int32; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { } } }
If I remove the "System". from Int32 in my declaration for an alias like "Foo", I get a compiler error. Although I use the System namespace at the top of the file, the compiler cannot find the unqualified type "Int32".
Why is this?
c #
Matt hamilton
source share