When would I use an alias on a using Directive?

c#

Solution

It's useful if you have a class of the same name in two different namespaces. When that happens you have two choices. `using` one namespace and not another (meaning use the fully qualified name for the other one), or `using` one namespace normally and `using` another with an alias. Since the alias is shorter than the fully qualified name it's still easier and more convenient.

Obviously the best option is to just not have public classes of the same name in different namespaces, especially if there's any chance someone would want to use both in the same class.

Problem

So I was reading over the MSDN docs and came across: http://msdn.microsoft.com/en-us/library/sf0df423.aspx What is a practical use of using an alias for `using` directives? I get what is does, I just dont get WHY I could want to use it.

Original source