Reputation: 7148
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.
I can use the IsDisposed
property fine, it will build and execute fine. Is there any reason for this or any known fix?
Upvotes: 4
Views: 395
Reputation: 149598
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#:
Upvotes: 7