CipherIS
asked on
C# fix circular reference
I have an app that I'm working on. Structure is as below
MyApp.sln
--ProjA
--Class1
--Class2
--Enum1 (ReportType)
--ProjB
--Class3 (Has method "MyMethod")
--Class4
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?
MyApp.sln
--ProjA
--Class1
--Class2
--Enum1 (ReportType)
--ProjB
--Class3 (Has method "MyMethod")
--Class4
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER