C# circular references?

    Date: 08/24/05 (Computer Geeks)    Keywords: no keywords

    Anyone awake who does C#?

    I have two projects, call them FOO and BAR.

    FOO has two classes, call them FOO-A and FOO-B

    BAR has two classes, call them BAR-A and BAR-B

    I've set it up such that BAR references FOO, so within BAR I can do things like

    FOO-A fooa = new FOO.FOO-A();

    No worries.

    But within FOO, I need to be able to have an instance of a BAR-A. I also need to be able to access static members of BAR-A and BAR-B.

    Adding a reference to BAR results in a circular reference, and that's not allowed.

    How in the hell can I resolve this?!

    (yes, it's 2am where I am, and this needs to be resolved by 9am if I'm going to be a hero - and I do not have time to rework the class structures)

    Source: http://www.livejournal.com/community/computergeeks/755555.html

« Mac and AD || New Computer Build »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home