Click or drag to resize

DictionaryExtensionGetValueOrDefaultTKey, TValue Method

Namespace:  Micros.Ops.TaxOverrides
Assembly:  Ops (in Ops.dll) Version: 18.2
Syntax
C#
public static TValue GetValueOrDefault<TKey, TValue>(
	this IDictionary<TKey, TValue> dictionary,
	TKey key
)

Parameters

dictionary
Type: System.Collections.GenericIDictionaryTKey, TValue
key
Type: TKey

Type Parameters

TKey
TValue

Return Value

Type: TValue

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionaryTKey, 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).
See Also