Click or drag to resize

RangeTRange, TStateMerge(RangeTRange, TState, IComparerTRange) Method

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

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

Parameters

range  RangeTRange, TState
The range to be merged with this one.
comparer  IComparerTRange
The comparer used to compare objects of type TRange.

Return Value

RangeTRange, TState
The range that fully encompasses the merged ranges.
Exceptions
ExceptionCondition
InvalidOperationExceptionTState is not IMergeableT.
See Also