MathTypeConverter.CanConvertFrom 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.
Syntax
'Declaration
Public Overrides Function CanConvertFrom ( _
context As ITypeDescriptorContext, _
sourceType As Type _
) As Boolean
public override bool CanConvertFrom (
ITypeDescriptorContext context,
Type sourceType
)
public:
bool CanConvertFrom(
ITypeDescriptorContext context,
Type sourceType
) override
Parameters
- context
Type: ITypeDescriptorContext
The format context. - sourceType
Type: Type
The type you want to convert from.
Return Value
Type: Boolean
true if this converter can perform the conversion; false otherwise.
Requirements
Namespace: Microsoft.Xna.Framework.Design
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
MathTypeConverter Class
MathTypeConverter Members
Microsoft.Xna.Framework.Design Namespace
Platforms
Windows Phone