Partial classes in separate dlls

前端 未结 7 964
野趣味
野趣味 2020-12-08 17:57

Is it possible to have two parts (same namespace, same class name) to a partial class in separate DLLs?

7条回答
  •  不知归路
    2020-12-08 18:34

    You can use extension methods when you want to add a method to a class in a different dll. The one drawback of this method is that you cant add static methods.

提交回复
热议问题