views:

87

answers:

3
+1  A: 

In that case you just have to delete the namespace ClLib and make sure that there is exactly one copy of ClLib.Express.1E1

P/S: Are you sure that the proper namespace is ClLib.Express.1E1? 1E1 is a cs file, and it's usually a class. So you don't have to write using ClLib.Express, that would be sufficient.

Ngu Soon Hui
You mean delete namespace ClLib of which file?
+2  A: 

You can't have a type and a namespace with the same name ("CILib.Express").

If you want a CILib.Express namespace, the simplest option is to move/rename the CILib.Express type.

You can, however, also have nested types. You could, for example, have:

namespace CILib {
    public class Express {
        public class SomeType {}
    }
}

If separate files are a concern:

file 1:

namespace CILib {
    public partial class Express { 
        // "Express" code
    }
}

file 2:

namespace CILib {
    public partial class Express {
        public class SomeType {
            // "SomeType" code
        }
    }
}

However, using directives only relate to namespaces; I don't think you could have using CILib.Express, as that is a type not a namespace.

Marc Gravell
A: 

I think there is confusion around the namespace and base class.

Namespace: ClLib.Express Class: public class 1E1:Express

Rename your base class to ExpressBase to differentiate it.

If you need to reference the namespace:

using ClLib.Express

Hope I have understood your project structure!

DiggerMeUp