This is useful if you have a class with the same name in two different namespaces. When this happens, you have two options. usingone namespace and not another (which means using the full name for another), or usingone namespace usually, and the usingother with an alias. Since the alias is shorter than the full name, it is still simpler and more convenient.
Obviously, the best option is to simply not have public classes with the same name in different namespaces, especially if there is a chance that someone wants to use both in the same class.
Servy source
share