Yaircc.NickNameTypeConverter.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 The format context.
sourceType System.Type The type you want to convert from.
Результат bool
        public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
        {
            return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
        }