This project is read-only.
1

Resolved

IDE: Object not set exception when a class has ambiguous members and trying to override one of them

description

Given the following (bad) type:

public class BaseClass
{
public virtual string Member1 { get; set; }
public virtual string Member1 { get; set; } //Duplicate member, won't compile
}

public class DerivedClass
{
public override...
}

After typing 'override' and selecting Member1 you get a message box saying "Object reference not set..." because of the ambiguity. While I agree it isn't possible to override the member in this case it should be gracefully handled.

comments

chandera wrote May 16, 2014 at 11:06 PM

We've fixed this in the IDE layer. Thanks!