so i have a class ClassA that contains an enum MyEnum, and a class ClassB that references that class (different Projects) and so in ClassB i have a
using ClassA;
clause and i can access that enum using something like
MyEnum value = MyEnum.EnumValue;
Now on a third project i have my Windows form and it has a clause like
using ClassB;
Now what can i add in ClassB to acess that enum on my windows Form? Is it even Possible? i would like to avoid having to add ClassA to my form just to access an enum.
The idea is that ClassB is sort of a manager between my form and the functionality in ClassA – but i would like to get access to that enum as it makes a lot of tasks easier
I upvoted you all the other day since all you comments aided me in finding the best solution for my case.
The solution i ultimatly followed was to refactor everything so that i managed to get all code that required that enum (or anything else) from ClassA into ClassB and have ClassB report back to my main project through events the results of the operations so that i could update the UI with the results as they come in.
I think this is ultimatly the best solution for this problem