Extensions.ToAdvisableDictionary<TKey, TValue> Method (IDictionary<TKey, TValue>) |
Converts an IDictionary<TKey, TValue> into an AdvisableDictionary<TKey, TValue>.
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static AdvisableDictionary<TKey, TValue> ToAdvisableDictionary<TKey, TValue>( this IDictionary<TKey, TValue> dictionary )
Parameters
- dictionary
- Type: System.Collections.Generic.IDictionary<TKey, TValue>
An IDictionary<TKey, TValue>, or null.
Type Parameters
- TKey
- Type of dictionary keys.
- TValue
- Type of dictionary values.
Return Value
Type: AdvisableDictionary<TKey, TValue>A new AdvisableDictionary<TKey, TValue> containing all elements of dictionary, or null if dictionary is empty.