Skip to content

APIs that are marked as UnsupportedOSPlatform("browser") under System.ComponentModel.TypeConverter seems like all were false positives. #45162

@buyaa-n

Description

@buyaa-n

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:

public static object CreateWithContext(Type type, LicenseContext creationContext)

public static object CreateWithContext(Type type, LicenseContext creationContext, object[] args)


public virtual object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args)

public static object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args)

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions