C# fix circular reference
Posted on 2016-08-04
I have an app that I'm working on. Structure is as below
--Class3 (Has method "MyMethod")
So, ProjA has references to ProjB.
Lets say in Class2 I'm calling Class3. Want to pass the Enum1 value in Class3.
So I'm calling MyMethod(ReportType.Static);
In Class3 when I type MyMethod(ReportType reportType)
I receive an error because it can't find "ReportType". If I try to add the reference by right clicking on reference and adding by selecting project and selecting "ProjA" I receive an error indicating a circular reference and I understand why.
Any idea how to pass the enum to Class3?