Click or drag to resize
OrderedBagT Constructor (IEnumerableT)
Creates a new OrderedBag. The T must implement IComparable<T> or IComparable. The CompareTo method of this interface will be used to compare items in this bag. The bag is initialized with all the items in the given collection.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public OrderedBag(
	IEnumerable<T> collection
)

Parameters

collection
Type: System.Collections.GenericIEnumerableT
A collection with items to be placed into the OrderedBag.
Exceptions
ExceptionCondition
InvalidOperationExceptionT does not implement IComparable<TKey>.
Remarks
Items that are null are permitted, and will be sorted before all other items.
See Also