Class KeyValuePairExtensions
Provides extension methods for the System.Collections.Generic.KeyValuePair<TKey, TValue> struct.
Inheritance
System.Object
Namespace: Umbraco.Core
Assembly: Umbraco.Core.dll
Syntax
public static class KeyValuePairExtensions
Methods
View SourceDeconstruct<TKey, TValue>(KeyValuePair<TKey, TValue>, out TKey, out TValue)
Implements key/value pair deconstruction.
Declaration
public static void Deconstruct<TKey, TValue>(this KeyValuePair<TKey, TValue> kvp, out TKey key, out TValue value)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<TKey, TValue> | kvp | |
TKey | key | |
TValue | value |
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
Remarks
Allows for foreach ((var k, var v) in ...)
.