[]
Returns the range that represents the intersection of this range and
value.
public Range<T> Intersect(Range<T> value)
| Type | Name | Description |
|---|---|---|
| Range<T> | value | The range to intersect with. |
| Type | Description |
|---|---|
| Range<T> | A range that contains the values that are common in both ranges, or null if there is no intersection. |
| Type | Condition |
|---|---|
| ArgumentNullException | is null.
|
| ArgumentException | does not overlap the range.
|