Circular reference among two .net assemblies

前端 未结 5 1672
闹比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:32

    Sounds like you are attempting death by interface. Not everything has to be exposed by interface.

    A simple answer is to either merge the assemblies, or move the common controls and data types to a third assembly. You only need to interface things if you want a consistent contractual way to access or work with things, and you want to hide the actual implementation.

提交回复
热议问题