I have a static class in a collaborative project that I want to extend using other methods in another project. Since the method that I want to extend the static class is applicable only to the second project, and also depends on other classes in this other project, I cannot just move it to the general project.
Basically I have an X class in MySolution.SharedProject. I want to create an X.Get () method in MySolution.PrimaryProject that references a SharedProject.
It seems that I cannot execute partial on projects, nor can I distribute static classes using extension methods.
How to do it?!
For all later visitors:
The selected answer does what I requested, but the BEST way is that John Skeet set out - to select different class names and get it using.
source
share