This project is read-only.
1

Resolved

IDE: When trying to override a member, the accessibility matters

description

Without Roslyn enabled when you type any accessibility modifier followed by override then you get a list of all overridable members. The modifier will get updated correctly when choosing a member.

With Roslyn enabled only members that match the accessibility are shown. Hopefully this isn't a new feature as it makes it harder to override members unless you know the accessibility already.

ie.
public class BaseClass
{
public virtual int Public1 { get; set; }
protected virtual int Protected1 { get; set; }
}

public class DerivedClass : BaseClass
{
//Without Roslyn you'd get both Public1 and Protected1
//With Roslyn you get only Public1
public override...
}

comments

chandera wrote May 7, 2014 at 11:56 PM

We've made this enhancement to the IntelliSense filtering logic so you can see members with a particular accessibility. If you don't type an accessibility modifier, we'll show all of the available members.