public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool | ||
context | ITypeDescriptorContext | |
sourceType | Type | |
리턴 | bool |
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
if (sourceType == typeof(string)) {
return true;
}
return base.CanConvertFrom(context, sourceType);
}