- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5.2k
 
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-Meta
Milestone
Description
Due to the Never flag used on a couple of these enum values:
runtime/src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs
Lines 288 to 298 in 20ab2fa
| 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:
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, 
 }jozefizso
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-Meta
