PostSharp SDK6.6//Post­Sharp.​Sdk.​Code­Model.​Collections Namespace/Metadata­Declaration­Directory(T) Class

MetadataDeclarationDirectory<T> Class

Dictionary where keys are declarations (MetadataDeclaration). The implementation is partially thread-safe and is optimized to have low lock contention.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Collections.MetadataDeclarationDirectory<T>

Namespace:  PostSharp.Sdk.CodeModel.Collections
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.6.3.0 (6.6.3.0)
Syntax
C#
public sealed class MetadataDeclarationDirectory<T> : IDictionary<MetadataDeclaration, T>, 
	ICollection<KeyValuePair<MetadataDeclaration, T>>, IEnumerable<KeyValuePair<MetadataDeclaration, T>>, 
	IEnumerable

Type Parameters

T
Type of items stored in the dictionary.

The MetadataDeclarationDirectory<T> type exposes the following members.

Constructors
  NameDescription
Public methodMetadataDeclarationDirectory<T>
Initializes a new MetadataDeclarationDirectory<T>.
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollection<T>.
Public propertyIsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Public propertyItem
Gets or sets the element with the specified key.
Methods
  NameDescription
Public methodClear
Removes all items from the ICollection<T>.
Public methodContainsKey
Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.
Public methodCopyTo
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove(MetadataDeclaration)
Removes the element with the specified key from the IDictionary<TKey, TValue>.
Public methodRemove(KeyValuePair<MetadataDeclaration, T>)
Removes the first occurrence of a specific object from the ICollection<T>.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Remarks
This implementation does not make a difference between an absent and a null item (or an item with the default value, if T is a value type).
See Also