所有这些答案都是向后的:受保护的内部可用于派生类或同一(或InternalsVisibleTo)程序集中的其他对象.你想要的是不可能的,正如Eric Lippert指出的那样,不是很有用,或者至少是你不应该很快就会想到的东西:http://blogs.msdn.com/b/ericlippert/archive/2008/04 /24/why-can-ti-access-a-protected-member-from-a-derived-class-part-three.aspx
| 归档时间: |
|
| 查看次数: |
328 次 |
| 最近记录: |