-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APIs that are marked as UnsupportedOSPlatform("browser")
under System.ComponentModel.TypeConverter
seems like all were false positives.
#45162
Comments
Tagging subscribers to this area: @safern Issue DetailsI looked through the APIs that are marked as Line 121 in aebd598
Line 132 in aebd598
Line 472 in aebd598
Line 54 in aebd598
Line 433 in aebd598
Line 21 in aebd598
@steveisok @eerhardt do you agree that all these should be supported? That is the way it looks to me. Originally posted by @safern in #43363 (comment)
|
Originally posted by @eerhardt in #43363 (comment) |
We used the tool to look for PNSE and NotSupportedException. Unfortunately, in the TypeConverter case, NSE is an expected throw and it was missed in review. |
I have removed the attributes from TypeDescriptor.CreateInstance, TypeDescriptionProvider.CreateInstance as it was referenced in my PR and causing warnings, remaining APIs ca be handled with this PR |
Is there anything that needs to be done here? If so please reopen. |
I looked through the APIs that are marked as
UnsupportedOSPlatform("browser")
underSystem.ComponentModel.TypeConverter
and to me it seems like all were false positives. I do see a common case where all are usingActivator.CreateInstance
orType.GetConstructor
which might have been the common pattern where the analyzer is flagging APIs are unsupported. These are the APIs that are marked as not supported:runtime/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/LicenseManager.cs
Line 121 in aebd598
runtime/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/LicenseManager.cs
Line 132 in aebd598
runtime/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/MaskedTextProvider.cs
Line 472 in aebd598
runtime/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptionProvider.cs
Line 54 in aebd598
runtime/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/TypeDescriptor.cs
Line 433 in aebd598
runtime/src/libraries/System.ComponentModel.TypeConverter/src/System/Security/Authentication/ExtendedProtection/ExtendedProtectionPolicyTypeConverter.cs
Line 21 in aebd598
@steveisok @eerhardt do you agree that all these should be supported? That is the way it looks to me.
Originally posted by @safern in #43363 (comment)
The text was updated successfully, but these errors were encountered: