protected override bool IsSupportedCore(TypePair typePair)
 {
     return typePair.Source.IsPrimitive
            || typePair.Source == typeof(string)
            || typePair.Source == typeof(Guid)
            || typePair.Source.IsEnum
            || typePair.Source == typeof(decimal)
            || typePair.HasTypeConverter();
 }
 protected override bool IsSupportedCore(TypePair typePair)
 {
     return(IsSupportedType(typePair.Source) || typePair.HasTypeConverter());
 }
 protected override bool IsSupportedCore(TypePair typePair)
 {
     return IsSupportedType(typePair.Source) || typePair.HasTypeConverter();
 }
예제 #4
0
 public static bool IsConvertibleType(TypePair typePair)
 {
     return(IsBaseType(typePair.Source) || typePair.HasTypeConverter());
 }