/// <summary> /// 金额区间判断帮助类 /// </summary> public static class DecimalRangeHelper { /// <summary> /// 是否有交集 /// </summary> /// <param name="currentRange"></param> /// <param name="otherRange"></param> /// <returns></returns> public static bool IsIntersectionWith(this DecimalRange currentRange, DecimalRange otherRange) { return currentRange.Min.In(otherRange.Min, otherRange.Max) || currentRange.Max.In(otherRange.Min, otherRange.Max) && otherRange.Min != currentRange.Max; } /// <summary> ///<
c# 多数值区间判断是否有重叠
最新推荐文章于 2024-01-12 16:01:07 发布