Click or drag to resize
Accord.NET (logo)

RationalConverterCanConvertFrom Method (ITypeDescriptorContext, Type)

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

Namespace:  Accord.Math.Converters
Assembly:  Accord (in Accord.dll) Version: 3.8.0
public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
Request Example View Source


Type: System.ComponentModelITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
Type: SystemType
A Type that represents the type you want to convert from.

Return Value

Type: Boolean
true if this converter can perform the conversion; otherwise, false.
See Also