NameObjectCollection(Int32, IEqualityComparer) Constructor

Initializes a new instance of the NameObjectCollection class that is empty, has the specified initial capacity, and uses the specified IEqualityComparer object.

Definition

Namespace: DevCase.Runtime.Collections
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public NameObjectCollection(
	int capacity,
	IEqualityComparer equalityComparer
)

Parameters

capacity  Int32
The initial number of entries that this NameObjectCollection object can contain.
equalityComparer  IEqualityComparer
The IEqualityComparer object to use to determine whether two keys are equal and to generate hash codes for the keys in the collection.

Exceptions

ArgumentOutOfRangeException capacity is less than zero.

See Also