PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Keyed­Collection<TKey, TItem>Advisable­Keyed­Collection
Open sandboxFocus

AdvisableKeyedCollection<TKey, TItem> Constructor

AdvisableKeyedCollection()

Initializes a new instance of the AdvisableKeyedCollection<TKey, TItem> class that is empty and has the default initial capacity.

Declaration
protected AdvisableKeyedCollection()

AdvisableKeyedCollection(Int32)

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
Int32 capacity

The number of elements the collection can contain before it must be resized.

AdvisableKeyedCollection(Int32, 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
Int32 capacity

The number of elements the collection can contain before it must be resized.

System.Collections.Generic.IEqualityComparer<TKey> comparer

The implementation of the System.Collections.Generic.IEqualityComparer<> generic interface to use when comparing keys, or null to use the default equality comparer for the type of the key.

AdvisableKeyedCollection(SerializationInfo, StreamingContext)

Deserialization constructor.

Declaration
protected AdvisableKeyedCollection(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info
StreamingContext context