Ejemplo n.º 1
0
 // Checked Less function common code
 static bool CheckedLess(IOrderedValue arg1, IOrderedValue arg2)
 {
     Logger.Assert(arg1.DataType.BaseType == arg2.DataType.BaseType);
     return(arg1.IsLess(arg2));
 }
Ejemplo n.º 2
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);
 }