TimeIntervalCollection<T>.Add Method (TimeIntervalCollection<T>, IEqualityComparer<T>) |
Adds another interval collection to this interval collection.
This interval collection will contain all intervals that were
previously in either collection. If an interval or portion of an interval is in both containers
and has different
Data in each container, the data from
collection takes precedence.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic void Add(
TimeIntervalCollection<T> collection,
IEqualityComparer<T> dataComparer
)
Public Sub Add (
collection As TimeIntervalCollection(Of T),
dataComparer As IEqualityComparer(Of T)
)
public:
void Add(
TimeIntervalCollection<T>^ collection,
IEqualityComparer<T>^ dataComparer
)
member Add :
collection : TimeIntervalCollection<'T> *
dataComparer : IEqualityComparer<'T> -> unit
Parameters
- collection
- Type: AGI.Foundation.Time.TimeIntervalCollection<T>
The collection to add to this collection. This parameter can be
null, in which case nothing will be added.
- dataComparer
- Type: System.Collections.Generic.IEqualityComparer<T>
The comparer to use to determine if the Data properties of two
intervals are equivalent.
Exceptions
See Also