HttpConfigurationSystem类位于哪个程序集中?

编程入门 行业动态 更新时间:2024-10-18 20:19:43
本文介绍了HttpConfigurationSystem类位于哪个程序集中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用反射来访问此类的各个方面.

I'm trying to use reflection to access aspects of this class.

referencesource.microsoft/#System.Web/Configuration/HttpConfigurationSystem.cs,ba796d857b1f5c41,引用

referencesource.microsoft/#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.

谢谢

推荐答案

尝试typeof(System.Web.Configuration.HttpConfigurationSystem).ToString()

Try typeof(System.Web.Configuration.HttpConfigurationSystem).ToString()

或者有一个名为"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类位于哪个程序集中?

本文发布于:2023-11-13 14:48:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1584620.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:程序   HttpConfigurationSystem

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!