Exemple #1
0
        public override bool Valid(object pObject)
        {
            var equalValidator = new Equal();
            var gtValidator    = new Gt();

            equalValidator.Value = Min;
            gtValidator.Min      = Min;

            return(equalValidator.Valid(pObject) || gtValidator.Valid(pObject));
        }
Exemple #2
0
        public override bool Valid(object pObject)
        {
            var equalValidator = new Equal();
            var ltValidator    = new Lt();

            equalValidator.Value = Max;
            ltValidator.Max      = Max;

            return(equalValidator.Valid(pObject) || ltValidator.Valid(pObject));
        }