Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedBag<(Of <(<'T>)>)> Constructor

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.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public OrderedBag()
Public Sub New
public:
OrderedBag()

Exceptions


ExceptionCondition
InvalidOperationExceptionT does not implement IComparable<TKey>.

Remarks


Items that are null are permitted, and will be sorted before all other items.