Click or drag to resize

IRangeTContains(IRangeT) Method

Returns true if the given range is entirely contained within this range.

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
bool Contains(
	IRange<T>? value
)

Parameters

value  IRangeT
The range to compare with this range.

Return Value

Boolean
true if the range is contained within this range.
Remarks
A range contains another range when the second range is entirely within the first range. Adjacent ranges never contain each other, regardless of their IsLowerInclusive or IsUpperInclusive values.
Range ARange BA.Contains(B)?
ABCDEF0ABCDEfalse
ABCDEFBCDEtrue
ABCDEFABCDEtrue
ABCDEFBCDEFtrue
ABCDEFABCDEFtrue
ABCDEFFGHIJfalse
See Also