Namespace mixed with compiler

Sometimes there are two places with partially identical namespaces, for example

Project.Data.Anything.ClassName
Project.Business.Anything.ClassName

It is common knowledge that Visual Studio refers to a different namespace. This is a little logical when this happens when using "Project.Data.Anything"; in the title.

That means if I write

public void ClassName

It refers to the business version. More often than not, I simply ignore it and print the entire namespace, but in several projects (in particular, this) it will be difficult to read and very overhead.

Any ideas, anyone?

+3
source share
1 answer

You can define a namespace

using Business = Project.Business.Anything.ClassName;

Business.ClassName
+4

All Articles