Ilya Ryzhenkov Enquired:
Is there any method to detect (not switch off) if property getter is being called by debugger and not user code? This would help to debug delay-loaded properties and many other stuff. For future versions, something like Debugger.IsGettingProperty would be great.
Ilya, there is no way to do this from managed code today. We're hesitant to encourage folks to have their properties behave differently when called by a debugger than when not - we can see a lot of very hard-to-find issues coming from that.
However, we’ll consider it for a future release. Thanks for the suggestion.