Class DictionaryExtensions
Represents a series of Dictionary extension methods.
Inherited Members
Namespace: TriLibCore.Extensions
Assembly: TriLibCore.dll
Syntax
public static class DictionaryExtensions
Methods
TryGetValueSafe<TKey, TValue>(IDictionary<TKey, TValue>, TKey, out TValue)
Tries to get a value in the given Dictionary without throwing Exceptions.
Declaration
public static bool TryGetValueSafe<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, out TValue value)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<TKey, TValue> | dictionary | The Dictionary. |
TKey | key | The Dictionary key. |
TValue | value | The Dictionary value. |
Returns
Type | Description |
---|---|
bool |
|
Type Parameters
Name | Description |
---|---|
TKey | The Dictionary Key type. |
TValue | The Dictionary Value type. |