NameObjectCollection(Int32, IHashCodeProvider, IComparer) Constructor
Note: This API is now obsolete.
Initializes a new instance of the
NameObjectCollection
class that is empty, has the specified initial capacity and uses the specified
hash code provider and the specified comparer.
Namespace: DevCase.Runtime.CollectionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[ObsoleteAttribute("Please use NameObjectCollection(Int32, IEqualityComparer) instead.")]
public NameObjectCollection(
int capacity,
IHashCodeProvider hashProvider,
IComparer comparer
)
<ObsoleteAttribute("Please use NameObjectCollection(Int32, IEqualityComparer) instead.")>
Public Sub New (
capacity As Integer,
hashProvider As IHashCodeProvider,
comparer As IComparer
)
Dim capacity As Integer
Dim hashProvider As IHashCodeProvider
Dim comparer As IComparer
Dim instance As New NameObjectCollection(capacity,
hashProvider, comparer)
public:
[ObsoleteAttribute(L"Please use NameObjectCollection(Int32, IEqualityComparer) instead.")]
NameObjectCollection(
int capacity,
IHashCodeProvider^ hashProvider,
IComparer^ comparer
)
[<ObsoleteAttribute("Please use NameObjectCollection(Int32, IEqualityComparer) instead.")>]
new :
capacity : int *
hashProvider : IHashCodeProvider *
comparer : IComparer -> NameObjectCollection
No code example is currently available or this language may not be supported.
Parameters
- capacity Int32
-
The initial number of entries that this NameObjectCollection
can contain.
- hashProvider IHashCodeProvider
-
The IHashCodeProvider that will supply the hash codes for
all keys in this NameObjectCollection.
- comparer IComparer
-
The IComparer to use to determine whether two keys are equal.
ArgumentOutOfRangeException
|
capacity is less than zero.
|