Click or drag to resize

Range<TRange, TState> .Merge(Range<TRange, TState> , IComparer<TRange> ) Method

Merges two ranges into one range that fully encompasses both ranges.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
Syntax
public Range<TRange, TState> Merge(
	Range<TRange, TState> range,
	IComparer<TRange> comparer
)
View Source

Parameters

range  Range<TRange, TState>
The range to be merged with this one.
comparer  IComparer<TRange>
The comparer used to compare objects of type TRange.

Return Value

Range<TRange, TState>
The range that fully encompasses the merged ranges.
Exceptions
ExceptionCondition
InvalidOperationExceptionTState is not IMergeable<T>.
See Also