I think I have painted myself into a corner here: Lets say I have a bunch of code that I use in multiple projects, so I put that in namespace Company
.
Then all project-specific code goes in Company.Project
. I can then call code in the library - the outer namespace - from the project namespace without having to specify the namespace - it's implicitly imported. Fine.
However, say I have some code that I use in all the projects, but which is implemented differently project by project. For the sake of example, lets say I have a diagnostic window and code that I might implement in WPF, or Winforms, or with a different look and feel for each project. As it's implemented project by project, it can't go in the Company
namespace, but when it's in the project namespace, I can only call it from the Company
namespace by specifying the inner namespace - which is going to be different for each project.
I guess I could use delegates to solve this but it seems messy - is there an easier way?