C# Partial Classes

后端 未结 5 1151
盖世英雄少女心
盖世英雄少女心 2021-01-04 01:04

I currently have a solution with multiple projects that mostly use the same classes. As a result, it appeared to me that it would be a good idea to add a class library cont

5条回答
  •  心在旅途
    2021-01-04 01:34

    In short, you can't use partial classes across projects. All the source must be compiled at the same time, and that's done per project.

    Here's a full discussion on SO about this: Should you use a partial class across projects?

提交回复
热议问题