Click or drag to resize

TimeIntervalCollectionTAdd Method (TimeIntervalCollection, T, IEqualityComparerT)

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: 24.2.419.0 (24.2.419.0)
Syntax
public void Add(
	TimeIntervalCollection collection,
	T data,
	IEqualityComparer<T> dataComparer
)

Parameters

collection
Type: AGI.Foundation.TimeTimeIntervalCollection
The collection to add to this collection. This parameter can be null, in which case nothing will be added.
data
Type: T
The Data to use for all intervals in the source collection.
dataComparer
Type: System.Collections.GenericIEqualityComparerT
The comparer to use to determine if the Data properties of two intervals are equivalent.
Exceptions
ExceptionCondition
ObjectFrozenException Thrown when this TimeIntervalCollection is read-only.
See Also