The only way to achieve this is to create an assembly for reference in your project (or just create a class in your project if you do not want to have an external assembly).
In your assembly, you can remove the namespace and use it only with the class (types):
public class mytype { public void DoSomething() { } } public class MyType : mytype { }
If you want both upper and lower case, just inherit the base class.
Then, in your application, after adding it as a link, you can simply access it:
namespace Test { class Program { static void Main(string[] args) { mytype my_type = new mytype(); my_type.DoSomething(); MyType my_Type = new MyType(); my_Type.DoSomething(); } } }
It is assumed that the color will be a standard color, but will allow you to at least access your custom “type” that you defined throughout your project.
Hope this leads you in the right direction.
source share