Circular reference among two .net assemblies

前端 未结 5 1525
闹比i
闹比i 2021-01-18 02:28

I have two assemblies A & B.

A has existing reference to B and it must be kept that way. Right now I made some changes to B that need to refer to A. So circular

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-18 03:34

    For issue 1, there is not really a solution other then merge the two projects or do some code generation

    For the second, you can do that by implementing the Factory design pattern.

提交回复
热议问题