I'm wondering, is there any statement that imports a namespace on a procedural level? For example:If there's not, should it be? Why it shouldn't be?Code:void Test() { using System.Something; SomeClass sc = new SomeClass(); ... }
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:Code:System.Something.SomeClass sc = new System.Something.SomeClass(); My.Something.SomeClass sc2 = new My.Something.SomeClass();




Reply With Quote