示例#1
0
 public BoolValue Gt(IOrderedValue arg1, IOrderedValue arg2)
 {
     return(BoolValue.Create(!CheckedLess(arg1, arg2) && !arg1.Equals(arg2)));
 }
示例#2
0
 public BoolValue Le(IOrderedValue arg1, IOrderedValue arg2)
 {
     return(BoolValue.Create(CheckedLess(arg1, arg2) || arg1.Equals(arg2)));
 }
示例#3
0
 // Less function common code
 static int compare(IOrderedValue arg1, IOrderedValue arg2)
 {
     Logger.Assert(arg1 != null && arg2 != null);
     return(arg1.Equals(arg2) ? 0
 : arg1.IsLess(arg2) ? -1 : 1);
 }