Esempio n. 1
0
 internal static bool IsDivisibleBy(this Object dividend, Object divisor)
 {
     if (dividend.IsNumber() && divisor.IsNumber() && IsDivisionCompatible(dividend, divisor))
     {
         dynamic dynamicDivisor = divisor;
         dynamic dynamicDividend = dividend;
         return dynamicDivisor != 0 && dynamicDividend % dynamicDivisor == 0;
     }
     return false;
 }
 /// <summary>
 /// Determines whether this instance can convert the specified value.
 /// </summary>
 public Boolean CanConvert(Object value, Type conversionType)
 {
     return value.IsNumber();
 }