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

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)
Visual Basic
Public Overrides Function CanConvertFrom ( 
	context As ITypeDescriptorContext,
	sourceType As Type
) As Boolean
Visual C++
public:
virtual bool CanConvertFrom(
	ITypeDescriptorContext^ context, 
	Type^ sourceType
) override
F#
abstract CanConvertFrom : 
        context : ITypeDescriptorContext * 
        sourceType : Type -> bool 
override CanConvertFrom : 
        context : ITypeDescriptorContext * 
        sourceType : Type -> bool 

Parameters

context
Type: System.ComponentModel..::..ITypeDescriptorContext
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
sourceType
Type: System..::..Type
A System.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