PostSharp 6.5 / / 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.

Public methodAdd
Adds an element with the provided key and value to the IDictionary<TKey, TValue>.
Protected methodAddItem
Adds an element into the underlying dictionary.
Public methodClear
Removes all elements from the IDictionary object.
Protected methodClearItems
Removes all keys and items from the underlying dictionary.
Public methodContainsKey
Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.
Public methodContainsValue
Determines whether the AdvisableDictionary<TKey, TValue> contains a specific value.
Protected methodExecuteWithAdvices<TResult, TAction>
Executes an action wrapped by all custom advices added to the current object.
(Inherited from DynamicallyAdvisableObject.)
Protected methodGetAdviceEnumerator
Public methodGetEnumerator
Returns an enumerator that iterates through the AdvisableDictionary<TKey, TValue>.
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
(Overrides DynamicallyAdvisableObject.GetObjectData(SerializationInfo, StreamingContext).)
Protected methodInitializeAdvices
Initializes the list of dynamic advices.
(Inherited from DynamicallyAdvisableObject.)
Public methodOnDeserialization
Runs when the entire object graph has been deserialized.
(Overrides DynamicallyAdvisableObject.OnDeserialization(Object).)
Public methodRemove
Removes the element with the specified key from the IDictionary<TKey, TValue>.
Protected methodRemoveItem
Removes the value with the specific key from the underlying dictionary.
Protected methodSetItem
Sets the value with the specified key in the underlying dictionary.
Public methodTryGetValue
Gets the value associated with the specified key.
Extension Methods
Public Extension MethodToAdvisableCollection<KeyValuePair<TKey, TValue>>
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.)
Public Extension MethodToAdvisableDictionary<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 MethodToAdvisableHashSet<KeyValuePair<TKey, TValue>>
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.)
See Also