Show / Hide Table of Contents

Method CanConvertFrom

CanConvertFrom(Nullable<ITypeDescriptorContext>, Type)

Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.

Declaration
public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
Parameters
Type Name Description
System.Nullable<ITypeDescriptorContext> context

An System.ComponentModel.ITypeDescriptorContext that provides a format context.

Type sourceType

A System.Type that represents the type you want to convert from.

Returns
Type Description
System.Boolean

true if this converter can perform the conversion; otherwise, false.

Applies to

Platforms and versions
TargetVersions
UWP100.15
In This Article
Back to top Copyright © 2022 Esri.