Exemple #1
0
 public static bool IsCastableTo <T>(object value)
 {
     return(TypeHelpers.IsImplicitCastableTo <T>(value?.GetType(), false));
 }
Exemple #2
0
 public static bool IsCastableTo(object value, Type type)
 {
     return(TypeHelpers.IsImplicitCastableTo(value?.GetType(), type, false));
 }