VersionConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

Gets a value indicating whether this converter can convert an object in the given source type to a Version.

public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext? context, Type sourceType);

Parameters

context
ITypeDescriptorContext

An object that provides contextual information.

sourceType
Type

The type of the object to be converted.

Returns

true if this converter can convert sourceType to a Version; otherwise, false.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9