<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.6.25358.103" />

IconConverter

Converts an Icon object from one data type to another. Access this class through the TypeDescriptor object.
using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; namespace System.Drawing { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] public class IconConverter : ExpandableObjectConverter { public IconConverter() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [System.Runtime.CompilerServices.NullableContext(1)] public override bool CanConvertFrom([System.Runtime.CompilerServices.Nullable(2)] ITypeDescriptorContext context, Type sourceType) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public override bool CanConvertTo(ITypeDescriptorContext context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] Type destinationType) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, [System.Runtime.CompilerServices.Nullable(1)] object value) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, [System.Runtime.CompilerServices.Nullable(1)] Type destinationType) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } }