Class DictionaryExtensions
Extension methods for dictionaries.
Inheritance
System.Object
DictionaryExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Collections.Generic
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public static class DictionaryExtensions
Methods
GetValueOrNull<TKey, TValue>(IDictionary<TKey, TValue>, TKey)
Gets the value or null.
Declaration
public static TValue GetValueOrNull<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key)
where TValue : class
Parameters
System.Collections.Generic.IDictionary<TKey, TValue>
dictionary
The dictionary. |
TKey
key
The key. |
Returns
TValue
|
Type Parameters
TKey
The type of the T key. |
TValue
The type of the T value. |