我可以在.Net中查看动态的运行时结构吗?

我刚刚遇到一个由我的应用程序中的配置错误导致的有趣错误,它提示了这个问题。 问题中的错误 我正在开发一个ASP.Net MVC 3 Web应用程序,我不小心从解决方案资源管理器中将web.config文件拖入了自身,导致web.config中出现以下内容:
<appSettings>
    <add key="ClientValidationEnabled" value="true"/>
    <add key="UnobtrusiveJavaScriptEnabled" value="trueD:Projectsapp_basesrcWebApp.UIWeb.config"/>
</appSettings>
发生的事情是这种配置导致ViewContext对象被破坏(并且正确地如此);当MVC运行时试图访问它时,我得到以下内容(这是从即时窗口)
? ViewContext.ClientValidationEnabled
    'ViewContext.ClientValidationEnabled' threw an exception of type 'System.FormatException'
    base {System.SystemException}: {"String was not recognized as a valid Boolean."}
我的问题 有没有办法在DLR中查看
dynamic
的内存内容?在这种情况下,我想查看引用解析
ClientValidationEnabled
的内存位置的内容,但每次我尝试访问该值时,运行时都会自动尝试将其装入
bool
。我得到了
((dynamic)((dynamic)this).ViewContext).ClientValidationEnabled
在我放弃试图找出QuickWatch的方法之前。     
已邀请:

要回复问题请先登录注册