Click or drag to resize
BagT Constructor (IEnumerableT, IEqualityComparerT)
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: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public Bag(
	IEnumerable<T> collection,
	IEqualityComparer<T> equalityComparer
)

Parameters

collection
Type: System.Collections.GenericIEnumerableT
A collection with items to be placed into the Bag.
equalityComparer
Type: System.Collections.GenericIEqualityComparerT
An instance of IEqualityComparer<T> that will be used to compare items.
See Also