问题描述
我正在尝试使用反射来访问此类的各个方面.
I'm trying to use reflection to access aspects of this class.
http://referencesource.microsoft.com/#System.Web/Configuration/HttpConfigurationSystem.cs,ba796d857b1f5c41,引用
http://referencesource.microsoft.com/#System.Web/Configuration/HttpConfigurationSystem.cs,ba796d857b1f5c41,references
但是当我调用Type.GetType("...");时我不确定该如何引用它.
But I'm not sure exactly how to refer to it when I call Type.GetType("...");
我尝试了"System.Web.Configuration.HttpConfigurationSystem";但返回空值.
I tried "System.Web.Configuration.HttpConfigurationSystem" but get a null back.
我知道该类是内部类,但我希望在使用反射时可以看到它.
I know the class is internal but I'd expect to see it when using reflection.
当我使用反射工具检查该程序集时,在System.Web中也看不到它.
I also can't see it in System.Web when I examine that assembly with reflection tools.
谢谢
推荐答案
或者有一个名为"c"的变量.类型为System.Web.Configuration.HttpConfigurationSystem的对象,然后调用c.GetType().ToString().
Or have a variable named "c" with type System.Web.Configuration.HttpConfigurationSystem, then call c.GetType().ToString().
这篇关于HttpConfigurationSystem类位于哪个程序集中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!