部分班级在单独的DLL [英] Partial classes in separate dlls

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

问题描述

是否有可能有两个部分(相同的命名空间,相同的类名),以在不同的DLL部分类?

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

推荐答案

-Partial类和方法:

所有局部类型定义意味着
为相同类型的部分必须在相同的组件和
相同的模块中定义
(.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天全站免登陆