Is it possible to declare a partial class in two projects

后端 未结 4 1798
醉话见心
醉话见心 2021-01-17 16:02

Consider we create a partial class in Project1 and we have a Project2 that has reference to Project1 .How is it possible t

4条回答
  •  情话喂你
    2021-01-17 16:10

    It is not possible to extend a partial class in another project. Partial is only compiler sugar. The compiler will create only one class in the resulting assembly.

提交回复
热议问题