Skip to content

Use of EditorBrowsableState.Never leads language service to claim it's gone #720

@AArnott

Description

@AArnott

Due to the Never flag used on a couple of these enum values:

public enum ComInterfaceType
{
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")]
InterfaceIsDual = 0,
InterfaceIsIUnknown = 1,
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")]
InterfaceIsIDispatch = 2,
InterfaceIsIInspectable = 3,
}

When coding against multiple frameworks, Roslyn claims the APIs are simply missing:

image

Can we get these Never settings to be changed to Advanced instead?

Desired API Changes

 public enum ComInterfaceType 
 { 
-    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 
-    [System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")] 
     InterfaceIsDual = 0, 
     InterfaceIsIUnknown = 1, 
-    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 
-    [System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")] 
     InterfaceIsIDispatch = 2, 
     InterfaceIsIInspectable = 3, 
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-approvedAPI was approved in API review, it can be implementedarea-Meta

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions