DictionaryExtensions.GetIntValue<TKey, TValue> Method

Definition

Namespace: Recrovit.RecroGridFramework.Abstraction.Extensions
Assembly: Recrovit.RecroGridFramework.Abstraction (in Recrovit.RecroGridFramework.Abstraction.dll) Version: 1.10.0.11113
C#
public static int GetIntValue<TKey, TValue>(
	this IDictionary<TKey, TValue> self,
	TKey key,
	int defaultValue = 0
)

Parameters

self  IDictionary<TKey, TValue>
 
key  TKey
 
defaultValue  Int32  (Optional)
 

Type Parameters

TKey
TValue

Return Value

Int32

Usage Note

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).

See Also