System.ComponentModel.BaseNumberConverter.CanConvertTo C# (CSharp) Méthode

CanConvertTo() public méthode

public CanConvertTo ( ITypeDescriptorContext context, Type t ) : bool
context ITypeDescriptorContext
t Type
Résultat bool
        public override bool CanConvertTo(ITypeDescriptorContext context, Type t) {
            if (base.CanConvertTo(context, t) || t.IsPrimitive) {
                return true;
            }
            return false;
        }
    }