Determines whether an object of the specified type can be converted to an instance of ICommand.

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)
Visual Basic
Public Overrides Function CanConvertFrom ( _
	context As ITypeDescriptorContext, _
	sourceType As Type _
) As Boolean

Parameters

context
Type: System.ComponentModel..::..ITypeDescriptorContext
A format context that provides information about the environment from which this converter is being invoked.
sourceType
Type: System..::..Type
The type being evaluated for conversion.

Return Value

True if this converter can perform the operation; otherwise, False.

See Also