Beispiel #1
0
 public bool IsValid(object value, object arguments)
 {
     double[] doubleArray = CellBaseUtils.ToDoubleArray(arguments);
     if (value == null)
     {
         return(true);
     }
     return(Convert.ToDouble(value) >= doubleArray[0] && Convert.ToDouble(value) <= doubleArray[1]);
 }
Beispiel #2
0
        public bool IsValid(object value, object arguments)
        {
            int num = value == null ? 0 : ((string)value).Length;

            double[] doubleArray = CellBaseUtils.ToDoubleArray(arguments);
            if (value == null)
            {
                return(true);
            }
            return(Convert.ToDouble(num) >= doubleArray[0] && Convert.ToDouble(num) <= doubleArray[1]);
        }