コード例 #1
0
 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();
 }
コード例 #2
0
 protected override bool IsSupportedCore(TypePair typePair)
 {
     return(IsSupportedType(typePair.Source) || typePair.HasTypeConverter());
 }
コード例 #3
0
 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());
 }