IRangeTContains(IRangeT) Method
Returns true if the given range is entirely contained within
this range.
Namespace: InnerDrive.CoreAssembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
bool Contains(
IRange<T>? value
)
- value IRangeT
- The range to compare with this range.
Booleantrue if the range is contained within this range.
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 A | Range B | A.Contains(B)? |
---|
ABCDEF | 0ABCDE | false |
ABCDEF | BCDE | true |
ABCDEF | ABCDE | true |
ABCDEF | BCDEF | true |
ABCDEF | ABCDEF | true |
ABCDEF | FGHIJ | false |