PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Dictionary(TKey, TValue) Class / Advisable­Dictionary(TKey, TValue) Methods
AdvisableDictionary<TKey, TValue> Methods

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

Methods
  Name Description
Public method Add
Adds an element with the provided key and value to the IDictionary<TKey, TValue>.
Protected method AddItem
Adds an element into the underlying dictionary.
Public method Clear
Removes all elements from the IDictionary object.
Protected method ClearItems
Removes all keys and items from the underlying dictionary.
Public method ContainsKey
Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.
Public method ContainsValue
Determines whether the AdvisableDictionary<TKey, TValue> contains a specific value.
Protected method ExecuteWithAdvices<TResult, TAction>
Executes an action wrapped by all custom advices added to the current object.
(Inherited from DynamicallyAdvisableObject.)
Public method GetEnumerator
Returns an enumerator that iterates through the AdvisableDictionary<TKey, TValue>.
Public method GetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
(Overrides DynamicallyAdvisableObject.GetObjectData(SerializationInfo, StreamingContext).)
Public method OnDeserialization
Runs when the entire object graph has been deserialized.
(Overrides DynamicallyAdvisableObject.OnDeserialization(Object).)
Public method Remove
Removes the element with the specified key from the IDictionary<TKey, TValue>.
Protected method RemoveItem
Removes the value with the specific key from the underlying dictionary.
Protected method SetItem
Sets the value with the specified key in the underlying dictionary.
Public method TryGetValue
Gets the value associated with the specified key.
Extension Methods
  Name Description
Public Extension Method QueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Public Extension Method ToAdvisableCollection<KeyValuePair<TKey, TValue>>
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.)
Public Extension Method ToAdvisableDictionary<KeyValuePair<TKey, TValue>, 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 Method ToAdvisableHashSet<KeyValuePair<TKey, TValue>>
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.)
See Also