AdvisableKeyedCollection()
Initializes a new instance of the AdvisableKeyedCollection<TKey, TItem> class that is empty and has the default initial capacity.
Declaration
protected AdvisableKeyedCollection()
AdvisableKeyedCollection(int)
Initializes a new instance of the AdvisableKeyedCollection<TKey, TItem> class that is empty and has a specified initial capacity.
Declaration
protected AdvisableKeyedCollection(int capacity)
Parameters
Type | Name | Description |
---|---|---|
int | capacity | The number of elements the collection can contain before it must be resized. |
AdvisableKeyedCollection(int, IEqualityComparer<TKey>)
Initializes a new instance of the AdvisableKeyedCollection<TKey, TItem> class that has a specified initial capacity and a given equality comparer and uses the specified equality comparer.
Declaration
protected AdvisableKeyedCollection(int capacity, IEqualityComparer<TKey> comparer)
Parameters
Type | Name | Description |
---|---|---|
int | capacity | The number of elements the collection can contain before it must be resized. |
IEqualityComparer<TKey> | comparer | The implementation of the IEqualityComparer<T> generic interface to use when comparing keys, or |
AdvisableKeyedCollection(SerializationInfo, StreamingContext)
Deserialization constructor.
Declaration
protected AdvisableKeyedCollection(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |