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