This is called type smoothing; reusing the using keyword can be misleading, but it is not an import.
The purpose of this statement is to make a particular class available with a different name. This is useful in cases where you have different assemblies associated with your project that accidentally have classes with the same name.
If you, for example, have A.dll that defines the class Foo in the namespace A and the assembly B.dll , which also defines the class Foo in the namespace B , you can use:
using FooA = A.Foo; using FooB = B.Foo;
to make a difference between the two.
The volume of this is usually the current file, although if you manage to define several namespaces in one file, you can specify the scope in the file:
using FooA = A.Foo; namespace N1 {
In practice, you can make this alias more specific, but not wider than the scope of the file.
source share