VelocityDbHashSetT Constructor (IEnumerableT, IEqualityComparerT) |
Implementation Notes:
Since resizes are relatively expensive (require rehashing), this attempts to minimize
the need to resize by setting the initial capacity based on size of collection.
Namespace:
VelocityDb.Collection
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public VelocityDbHashSet(
IEnumerable<T> collection,
IEqualityComparer<T> comparer
)
Public Sub New (
collection As IEnumerable(Of T),
comparer As IEqualityComparer(Of T)
)
public:
VelocityDbHashSet(
IEnumerable<T>^ collection,
IEqualityComparer<T>^ comparer
)
new :
collection : IEnumerable<'T> *
comparer : IEqualityComparer<'T> -> VelocityDbHashSet
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
[Missing <param name="collection"/> documentation for "M:VelocityDb.Collection.VelocityDbHashSet`1.#ctor(System.Collections.Generic.IEnumerable{`0},System.Collections.Generic.IEqualityComparer{`0})"]
- comparer
- Type: System.Collections.GenericIEqualityComparerT
[Missing <param name="comparer"/> documentation for "M:VelocityDb.Collection.VelocityDbHashSet`1.#ctor(System.Collections.Generic.IEnumerable{`0},System.Collections.Generic.IEqualityComparer{`0})"]
See Also