Kit Documentation
Kit Documentation
Kit Reference
Kit
DictionaryExtensions Class
DictionaryExtensions Methods
Deconstruct(T1, T2) Method
GetOrDefault(TKey, TValue) Method
DictionaryExtensions
Deconstruct
T1
,
T2
Method
Allows to iterate over a dictionary using tuples.
Namespace:
Kit
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
Copy
public
static
void
Deconstruct
<T1, T2>(
this
KeyValuePair
<T1, T2>
tuple
,
out
T1
key
,
out
T2
value
)
Request Example
View Source
Parameters
tuple
Type:
System.Collections.Generic
KeyValuePair
T1
,
T2
key
Type:
T1
value
Type:
T2
Type Parameters
T1
T2
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
KeyValuePair
T1
,
T2
. 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
Reference
DictionaryExtensions Class
Kit Namespace
Send comments on this topic to
agam@frag-games.com