Please, observe:
It works neither in the Immediate Window nor when setting a conditional breakpoint.
Can anyone explain what am I doing wrong?
EDIT 1
Use the legacy C# and VB expression evaluators is unchecked.
However, Use managed compatibility mode is checked. But I remember turning it on in order to work around a bug in the VS 2015 debugger. I need some more time to get the details of the bug.
EDIT 2
The watch window is dysfunctional with Use managed compatibility mode unchecked in VS 2015. For example:
Note, that this is the Debug mode, not Release. I remember having a lot of issues with inspecting the state while debugging and that the prevailing recommendation was to turn on Use managed compatibility mode.
Unfortunately, I cannot move to VS2017, since our code base still has some Silverlight code.
Of course, this strange behaviour goes away once I am in the compatibility mode.