SetT Constructor (IEnumerableT, IEqualityComparerT) |
Creates a new Set. The Equals and GetHashCode method of the passed comparer object
will be used to compare items in this set. The set is
initialized with all the items in the given collection.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic Set(
IEnumerable<T> collection,
IEqualityComparer<T> equalityComparer
)
public:
Set(
IEnumerable<T>^ collection,
IEqualityComparer<T>^ equalityComparer
)
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
A collection with items to be placed into the Set. - equalityComparer
- Type: System.Collections.GenericIEqualityComparerT
An instance of IEqualityComparer<T> that will be used to compare items.
See Also