ConcurrentHashSetT(Int32, IEnumerableT, IEqualityComparerT) - конструктор
Initializes a new instance of the
ConcurrentHashSetT
class that contains elements copied from the specified
IEnumerable,
has the specified concurrency level, has the specified initial capacity, and uses the specified
IEqualityComparerT.
Пространство имён: Tessa.Platform.CollectionsСборка: Tessa (в Tessa.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
public ConcurrentHashSet(
int concurrencyLevel,
IEnumerable<T> collection,
IEqualityComparer<T>? comparer
)
Public Sub New (
concurrencyLevel As Integer,
collection As IEnumerable(Of T),
comparer As IEqualityComparer(Of T)
)
public:
ConcurrentHashSet(
int concurrencyLevel,
IEnumerable<T>^ collection,
IEqualityComparer<T>^ comparer
)
new :
concurrencyLevel : int *
collection : IEnumerable<'T> *
comparer : IEqualityComparer<'T> -> ConcurrentHashSet
Параметры
- concurrencyLevel Int32
- The estimated number of threads that will update the
ConcurrentHashSetT concurrently.
- collection IEnumerableT
- The IEnumerableT whose elements are copied to the new
ConcurrentHashSetT.
- comparer IEqualityComparerT
- The IEqualityComparerT implementation to use
when comparing items.