gavio
Aug 21st, 2011, 04:21 AM
I'm wondering, is there any statement that imports a namespace on a procedural level? For example:void Test()
{
using System.Something;
SomeClass sc = new SomeClass();
...
}If there's not, should it be? Why it shouldn't be?
It bothers me that I have to watch and avoid general names, cause I like general names, like for example Image and so on (cause it already exists in System.Drawing). Then, I cannot use the two in the same class withouth doing this:System.Something.SomeClass sc = new System.Something.SomeClass();
My.Something.SomeClass sc2 = new My.Something.SomeClass();
{
using System.Something;
SomeClass sc = new SomeClass();
...
}If there's not, should it be? Why it shouldn't be?
It bothers me that I have to watch and avoid general names, cause I like general names, like for example Image and so on (cause it already exists in System.Drawing). Then, I cannot use the two in the same class withouth doing this:System.Something.SomeClass sc = new System.Something.SomeClass();
My.Something.SomeClass sc2 = new My.Something.SomeClass();