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