Rename Namespace in C Sharp/C#

By | June 18, 2011

Hi,

This is how you can simply rename a namespace in C Sharp/C#,

using urNamedClass = System.Console;

class MainClass
{
    public static void Main()
    {
        urNamedClass.WriteLine("Hello");
    }
}

This will print out ‘Hello’!
🙂

Leave a Reply

Your email address will not be published. Required fields are marked *