开发者

Is it possible to obtain the classes or methods of other class with out adding a reference of that class

开发者 https://www.devze.com 2023-03-29 02:40 出处:网络
In my project i am having 2 class libraries namely DAL and BAL . While adding reference only one reference is added and for the other i am getting some Circular Dependancy error. So is there any possi

In my project i am having 2 class libraries namely DAL and BAL . While adding reference only one reference is added and for the other i am getting some Circular Dependancy error. So is there any possibility to obtain the members of other class wi开发者_StackOverflow社区th out adding reference of that class.


A circular dependency usually means there is a design flaw in your system. If there is some common functionality that both libraries need then perhaps extract that into a third assembly and reference that from both.

Alternatively, you could have a third project that references the other two and is responsible for handling communication between them, a mediator.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号