c# - 单独的 dll 中的部分类

标签 c# dll partial-classes

是否可以在单独的 DLL 中将两个部分(相同的命名空间、相同的类名)分配给分部类?

最佳答案

来自 MSDN -Partial Classes and Methods :

All partial-type definitions meant to be parts of the same type must be defined in the same assembly and the same module (.exe or .dll file). Partial definitions cannot span multiple modules.

关于c# - 单独的 dll 中的部分类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3858649/

相关文章:

c# - 如何定义实现接口(interface)并约束类型参数的泛型类?

c# - 在 WPF 项目中调用 Winforms ControlPaint.Light()

c++ - 替换反编译 DLL 中的函数

c# - 无法使用 c++/cli 包装器从 c# dll 加载函数

c++ - VS2010 : Add company name,等到一个DLL

c# - C# 和 Web 服务中的部分类

c# - 最佳实践 : When not/to use partial classes

c# - 强制 EditorFor 在 View 中使用类名作为输入项的前缀?

c# - 减少来自 HttpPostedFileBase 的图像大小(物理和尺寸)然后转换为 base64

c# - 支持/反对使用部分类进行测试的原因?