Is it possible to have two partial classes in different assemblies represent the same class?

前端 未结 9 1482
栀梦
栀梦 2020-11-27 03:56

I have a class called \'Article\' in a project called \'MyProject.Data\', which acts as the data layer for my web application.

I have a separate project called \'MyP

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 04:45

    Add the base file as a linked file into your projects. It's still partial but as allows you to share it between both projects, keep them synchronized and at the same time have version/framework specific code in the partial classes.

提交回复
热议问题