Reflector issue when decompiling a WPF assembly (i.e. PresentationCore, PresentationFramework)

元气小坏坏 提交于 2019-12-06 04:08:42

Okay, this is your problem (I know because I had the same issue):

There are some assemblies that, for whatever reason, can't disassemble (its as if they are empty). These assemblies are (sorry, memory here) under the Program Files directory somewhere.

You need to open the same assemblies but under C:\Windows\Microsoft.NET\Framework\etc\etc.

What version do you have? I'm using 6.1.0.11 (apparently the latest) and I get the following:

protected override DependencyObject GetContainerForItemOverride()
{
    return new ListBoxItem();
}

If you're not seeing that, I would suggest a better place to ask would be the RedGate forums.

I suspect you're using an older version of Reflector to inspect .NET 4.0 assemblies... I had this problem too, but the latest version of Reflector fixes it.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!