Bug 6514 - Incorrect resolving of virtual property
Summary: Incorrect resolving of virtual property
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: 3.0.x
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2012-08-13 10:44 UTC by Jérémie Laval
Modified: 2015-07-03 04:13 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jérémie Laval 2012-08-13 10:44:18 UTC
In the following scenario (breakpoint added):

class BaseClass
   public virtual string Foo {
     get {
        return null;

   public void Something ()
=>    DoSomething (Foo);

class DerivedClass : BaseClass
   public string Foo {
     get {
        return "foo";

var bar = new DerivedClass ();
bar.Something ();

When hovering on the Foo property call in Something(), the debugger will show a value of "foo" although the correct (and actual) value is null because the property Foo in DerivedClass doesn't override the base virtual Foo property.
Comment 1 Jeffrey Stedfast 2012-10-23 16:00:20 UTC
Looks like this will be impossible to fix with the current NRefactoryEvaluator. Perhaps Mike's new NRefactory API will make this possible.
Comment 2 xamarin-release-manager 2015-07-03 04:13:28 UTC
Fixed in version (master)