Global Import/using Aliasing in .NET
- by Josh Stodola
Using import aliasing in a single class, we can reference class library namespaces by assigning our own custom alias like this:
' VB
Imports Db = Company.Lib.Data.Objects
// C#
using Db = Company.Lib.Data.Objects;
And then we are able to reference the classes inside of Company.Lib.Data.Objects by using the Db alias that we assigned.
Is it…