What goes in the “Non-Public members” node in Visual Studio's Watch window?

泪湿孤枕 提交于 2019-12-05 22:01:05

The behavior you are seeing here is a bug. The C# debugger shouldn't be showing static members in this scenario. I confirmed this with the current owner of the code base and he's going to file a bug for the next release of Visual Studio.

The specific scenario under which this happens is

  • Just My Code is enabled
  • The type is defined in what's determined to be a non-user assembly
  • The type of the reference and object instance are different (switch hash2 to SHA1Cnf and the problem disappears)

Note there may be other scenarios where this appears. This is the behavior I was able to narrow down in the debugging / experimentation that I did.

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