-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
I looked through the APIs that are marked as UnsupportedOSPlatform("browser") under System.ComponentModel.TypeConverter and to me it seems like all were false positives. I do see a common case where all are using Activator.CreateInstance or Type.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:
Line 121 in aebd598
| public static object CreateWithContext(Type type, LicenseContext creationContext) |
Line 132 in aebd598
| public static object CreateWithContext(Type type, LicenseContext creationContext, object[] args) |
Line 472 in aebd598
| public object Clone() |
Line 54 in aebd598
| public virtual object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args) |
Line 433 in aebd598
| public static object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args) |
Line 21 in aebd598
| public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) |
@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)