Bag<(Of <(<'T>)>)> Constructor (IEnumerable<(Of <(<'T>)>)>, IEqualityComparer<(Of <(<'T>)>)>)
Creates a new Bag. The Equals and GetHashCode methods of the passed comparison object
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 Bag( IEnumerable<T> collection, IEqualityComparer<T> equalityComparer )
Public Sub New ( _ collection As IEnumerable(Of T), _ equalityComparer As IEqualityComparer(Of T) _ )
public: Bag( IEnumerable<T>^ collection, IEqualityComparer<T>^ equalityComparer )
Parameters
- collection
- Type: IEnumerable<(Of <(<'T>)>)>
A collection with items to be placed into the Bag.
- equalityComparer
- Type: IEqualityComparer<(Of <(<'T>)>)>
An instance of IEqualityComparer<T> that will be used to compare items.