WeaverUtilities.

Get<TKey, TValue>(Dictionary<TKey, TValue>, TKey, TValue) Method

Summary

If the dictionary contains a value for the given key, that value is returned. Otherwise the default value is returned.
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
WeaverUtilities

Syntax

public static TValue Get<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue defaultValue = default(TValue))

Type Parameters

Name Description
TKey
TValue

Parameters

Name Type Description
dictionary Dictionary<TKey, TValue>
key TKey
defaultValue TValue

Return Value

Type Description
TValue