Can you provide an alias for a class in the namespace? And if not, why not?
For example, if I had several libraries of things that were obtained from the contained, but called base class, but wanted the alias to be “BaseClass”, while preserving its actual class name (for example, “HtmlControl”).
Then consumers can always come and go from HtmlControls.BaseClass without figuring out which class it really comes from.
source
share