Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio IntelliSense not showing Control.IsDisposed Property?

I have Visual Studio 2013 and I have noticed that it will not show Control.IsDisposed in IntelliSense. I am not sure whether this is the only thing that isn't displayed. Everything else seems to be shown fine in IntelliSense.

enter image description here

I can use the IsDisposed property fine, it will build and execute fine. Is there any reason for this or any known fix?

like image 785
KDecker Avatar asked Mar 15 '23 16:03

KDecker


1 Answers

The Control.IsDisposed property has the EditorBrowseableAttribute set to Advanced, which makes it non-browsable in the VS editor:

The property or method is a feature that only advanced users should see. An editor can either show or hide such properties.

[
Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced),
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden),
SRDescription(SR.ControlDisposedDescr)
]
public bool IsDisposed {
    get {
        return GetState(STATE_DISPOSED);
    }
}

Edit:

@Glen points out (thanks!) that you can view advanced members by changing the VS settings in Tools -> Options -> Text Editor -> C#:

Advanced members

like image 95
Yuval Itzchakov Avatar answered Apr 29 '23 15:04

Yuval Itzchakov