/// <summary> /// Determines whether or not this instance contains the specified other <see cref="IndexRange"/>. /// </summary> /// <returns> /// <see langword="true"/> if this instance contains the specified other <see cref="IndexRange"/>; otherwise /// <see langword="false"/>. /// </returns> /// <param name="other">Other.</param> public bool Contains(IndexRange other) { return(Contains(other.StartIndex) && Contains(other.EndIndex)); }