本文介绍了如何访问基类的私有成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 标题总结了这个问题。 我想访问一个类的所有私人成员,包括私人 基类的成员。(我已经有了ReflectionPermission) 有没有办法获取这些信息? Thnaks in提前Hi,The title sums up the question pretty much.I would like to access all private members of a class including the privatemembers of its base classes.( I already have the ReflectionPermission )Is there a way to get this information ?Thnaks in advance推荐答案 从理论上说,不应该。这就是为什么他们是私人的。但是,如果.NET提供了一些方法,那么不会感到惊讶。我有兴趣找到它。Theoretically, there shouldn''t be. That''s why they''re private. But Iwouldn''t be surprised if .NET provided some way to do it. I''d beinterested in finding out. 这篇关于如何访问基类的私有成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!