单独 dll 中的部分类 [英] Partial classes in separate dlls

查看:13
本文介绍了单独 dll 中的部分类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

来自 MSDN - 部分类和方法:

所有部分类型定义旨在是相同类型的部分必须是在同一个程序集中定义,并且相同的模块(.exe 或 .dll 文件).部分定义不能跨越多个模块.

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.

这篇关于单独 dll 中的部分类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆