ComponentFactory.Krypton.Toolkit.ButtonSpecFormFixedConverter.CanConvertTo C# (CSharp) Method

CanConvertTo() public method

Returns whether this converter can convert the object to the specified type.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext An ITypeDescriptorContext that provides a format context.
destinationType System.Type A Type that represents the type you want to convert to.
return bool
        public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
        {
            // Can always convert to a string representation
            if (destinationType == typeof(string))
                return true;

            // Let base class do standard processing
            return base.CanConvertTo(context, destinationType);
        }
ButtonSpecFormFixedConverter