[]
Returns the range that represents the union of this range and
value
.
public Range<T> Union(Range<T> value)
Type | Name | Description |
---|---|---|
Range<T> | value | The range to union with. |
Type | Description |
---|---|
Range<T> | A range that contains both ranges, or null if there is no union. |
Type | Condition |
---|---|
ArgumentNullException | is null.
|
ArgumentException | is not contiguous with the range.
|