Yaircc.NickNameTypeConverter.CanConvertFrom C# (CSharp) Method

CanConvertFrom() public method

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.
return bool
        public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
        {
            return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
        }