OrderedBag<(Of <(<'T>)>)> Constructor (IEnumerable<(Of <(<'T>)>)>, Comparison<(Of <(<'T>)>)>)
Creates a new OrderedBag. The passed delegate will be used to compare items in this bag.
The bag is initialized with all the items in the given collection.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public OrderedBag( IEnumerable<T> collection, Comparison<T> comparison )
Public Sub New ( _ collection As IEnumerable(Of T), _ comparison As Comparison(Of T) _ )
public: OrderedBag( IEnumerable<T>^ collection, Comparison<T>^ comparison )
Parameters
- collection
- Type: IEnumerable<(Of <(<'T>)>)>
A collection with items to be placed into the OrderedBag.
- comparison
- Type: Comparison<(Of <(<'T>)>)>
A delegate to a method that will be used to compare items.