/// <summary> /// Determines if another range is inside the bounds of this range /// </summary> /// <param name="intRange">The child range to test</param> /// <returns>True if range is inside, else false</returns> public Boolean ContainsRange(IntRange intRange) { return this.IsValid() && intRange.IsValid() && this.ContainsValue(intRange.Minimum) && this.ContainsValue(intRange.Maximum); }
/// <summary> /// Determines if this IntRange is inside the bounds of another range /// </summary> /// <param name="intRange">The parent range to test on</param> /// <returns>True if range is inclusive, else false</returns> public Boolean IsInsideRange(IntRange intRange) { return this.IsValid() && intRange.IsValid() && intRange.ContainsValue(this.Minimum) && intRange.ContainsValue(this.Maximum); }