Circular References in my C# projects

前端 未结 4 1805
半阙折子戏
半阙折子戏 2021-02-13 11:56

I have the following situation:

  1. A project MyCompany.MyProject.Domain which contains my domain model, and partial classes (such as Contact

4条回答
  •  一向
    一向 (楼主)
    2021-02-13 12:31

    If you're sure about keeping the code in the utility DLL (Eric's answer seems smart to me), then you could create an interface in your utility project, pass that interface as a parameter to your ToSlug method and then have your domain object implement the interface.

提交回复
热议问题