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

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

Type Parameters

Type of items stored in the dictionary.

The MetadataDeclarationDirectory<T> type exposes the following members.

Public methodMetadataDeclarationDirectory<T>
Initializes a new MetadataDeclarationDirectory<T>.
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.
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.)
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