TimeIntervalCollectionTIntersect Method (TimeIntervalCollectionT) |
Computes the intersection of this interval collection with another.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public TimeIntervalCollection<T> Intersect(
TimeIntervalCollection<T> collection
)
Public Function Intersect (
collection As TimeIntervalCollection(Of T)
) As TimeIntervalCollection(Of T)
public:
TimeIntervalCollection<T>^ Intersect(
TimeIntervalCollection<T>^ collection
)
member Intersect :
collection : TimeIntervalCollection<'T> -> TimeIntervalCollection<'T>
Parameters
- collection
- Type: AGI.Foundation.TimeTimeIntervalCollectionT
The collection to intersect with this collection. The parameter
can be null, in which case Intersect returns this instance.
Return Value
Type:
TimeIntervalCollectionTThe intersection of this collection with another collection.
Remarks
The returned collection will only contain the intervals that are in both collections.
If two intervals in the two collections overlap but have different
Data,
the overlapping part will NOT be included in the resulting collection.
See Also