Binary Artist

The Jason Marshall Experience

Binary Artist

Jason Marshall
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012

Using Namespace Alias Qualifier (C# Programming Guide)

 

The ability to access a member in the global namespace is useful when

the member might be hidden by another entity of the same name.

In this example, the namespace System is used to include the class TestClass therefore, global::System.Console must be used to reference the System.Console class, which is hidden by the System namespace. Also, the alias mcLovin is used to refer to the namespace System.Collections; therefore, the instance of a System.Collections..::.Hashtable was created using this alias instead of the namespace.

  

Posted by Admin on Wednesday, April 30, 2008 8:37 AM
Permalink | Comments (0) | Post RSSRSS comment feed
Free Hit Counters
page counter