Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Dictionary(TKey, TValue).​Key­Collection Class

AdvisableDictionary<TKey, TValue>.KeyCollection Class

Represents the collection of keys in an AdvisableDictionary<TKey, TValue>.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Collections.AdvisableDictionary<TKey, TValue>.KeyCollection

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.43.0 (5.0.43.0)
Syntax
C#
public sealed class KeyCollection : ICollection<TKey>, 
	IEnumerable<TKey>, IEnumerable, ICollection

The AdvisableDictionary<TKey, TValue>.KeyCollection generic type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollection<T>.
Methods
  NameDescription
Public methodCopyTo
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Public methodGetEnumerator
Returns an enumerator that iterates through the AdvisableDictionary<TKey, TValue>.KeyCollection.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Public Extension MethodToAdvisableCollection<TKey>
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.)
Public Extension MethodToAdvisableDictionary<TKey, TKey, TValue>
Converts an IEnumerable<T> into a AdvisableDictionary<TKey, TValue> given a method returning the item key and a method returning the item value.
(Defined by Extensions.)
Public Extension MethodToAdvisableHashSet<TKey>
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.)
See Also