Table of Contents

Method CanConvertFrom

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CanConvertFrom(ITypeDescriptorContext?, Type?)

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

public override bool CanConvertFrom(ITypeDescriptorContext? typeDescriptorContext, Type? sourceType)

Parameters

typeDescriptorContext ITypeDescriptorContext
sourceType Type

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

Returns

bool

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