Accord.Controls.RangeTypeConverter.CanConvertFrom C# (CSharp) Метод

CanConvertFrom() публичный Метод

Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext An that provides a format context.
sourceType System.Type A that represents the type you want to convert from.
Результат bool
        public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
        {
            if (sourceType == typeof(DoubleRange) ||
                sourceType == typeof(IntRange))
                return true;

            return base.CanConvertFrom(context, sourceType);
        }