Пример #1
0
        protected sealed override bool check()
        {
            var value1 = Value1.GetValueAsObject() as IComparable;
            var value2 = Value2.GetValueAsObject() as IComparable;

            if (value1 == null || value2 == null)
            {
                return(false);
            }

            return(value1.CompareTo(value2) < 0);
        }
Пример #2
0
 protected sealed override bool check()
 {
     return(Value1.GetValueAsObject().Equals(Value2.GetValueAsObject()));
 }