Ejemplo n.º 1
0
        /// <summary>
        /// 验证
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public override bool IsValid(object value)
        {
            base.Value = value;

            if (!JudgeUtility.IsInt(value))
            {
                return(false);
            }

            int convValue = Convert.ToInt32(value);

            return(convValue >= minValue && convValue <= maxValue);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 验证
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public override bool IsValid(object value)
        {
            Value = value;

            if (!JudgeUtility.IsInt(value))
            {
                return(false);
            }

            var convValue = Convert.ToInt32(value);

            return(convValue >= minValue);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 数据验证
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public override bool IsValid(object value)
 {
     base.Value = value;
     return(JudgeUtility.IsInt(value));
 }