private static bool IsLeftLimit(ExcludedRange range) { return(range.LeftLimit != -1); }
public bool Contains(ExcludedRange rangeInCase) => LeftLimit <= rangeInCase.LeftLimit && RightLimit >= rangeInCase.RightLimit;
private static bool IsRightLimit(ExcludedRange limit) { return(limit.RightLimit != -1); }