-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Collections_DictionaryExtensions_GetValueOrDefault__2_1
[This is preliminary documentation and is subject to change.]
Returns value associated with key, or default(TValue) if key does not exists in dictionary
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static TValue GetValueOrDefault<TKey, TValue>(
this IDictionary<TKey, TValue> dictionary,
TKey key
)
VB
<ExtensionAttribute>
Public Shared Function GetValueOrDefault(Of TKey, TValue) (
dictionary As IDictionary(Of TKey, TValue),
key As TKey
) As TValue
F#
[<ExtensionAttribute>]
static member GetValueOrDefault :
dictionary : IDictionary<'TKey, 'TValue> *
key : 'TKey -> 'TValue
- dictionary
- Type: System.Collections.Generic.IDictionary(TKey, TValue)
[Missing documentation for "M:CodeJam.Collections.DictionaryExtensions.GetValueOrDefault2(System.Collections.Generic.IDictionary{
0,1},
0)"] - key
- Type: TKey
[Missing documentation for "M:CodeJam.Collections.DictionaryExtensions.GetValueOrDefault2(System.Collections.Generic.IDictionary{
0,1},
0)"]
- TKey
- [Missing documentation for "M:CodeJam.Collections.DictionaryExtensions.GetValueOrDefault
2(System.Collections.Generic.IDictionary{
0,1},
0)"] - TValue
- [Missing documentation for "M:CodeJam.Collections.DictionaryExtensions.GetValueOrDefault
2(System.Collections.Generic.IDictionary{
0,1},
0)"]
Type: TValue
[Missing documentation for "M:CodeJam.Collections.DictionaryExtensions.GetValueOrDefault2(System.Collections.Generic.IDictionary{
0,1},
0)"]
In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionary(TKey, TValue). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
DictionaryExtensions Class
GetValueOrDefault Overload
CodeJam.Collections Namespace