Click or drag to resize

BinarySizeConverterCanConvertFrom Method (ITypeDescriptorContext, Type)

Determines if this converter can convert an object in the given source type to the native type of the converter.

Namespace:  Ookii.Jumbo
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

Parameters

context
Type: System.ComponentModelITypeDescriptorContext
A formatter context. This object can be used to get additional information about the environment this converter is being called from. This may be , so you should always check. Also, properties on the context object may also return .
sourceType
Type: SystemType
The type you want to convert from.

Return Value

Type: Boolean
if this object can perform the conversion; otherwise, .
See Also