Table of Contents

Class KeyValuePairExtensions

Namespace
TypedRest.CodeGeneration
Assembly
TypedRest.CodeGeneration.dll
public static class KeyValuePairExtensions
Inheritance
object
KeyValuePairExtensions

Methods

Deconstruct<TKey, TValue>(KeyValuePair<TKey, TValue>, out TKey, out TValue)

Deconstructs a KeyValuePair<TKey, TValue> like a tuple.

[Pure]
public static void Deconstruct<TKey, TValue>(this KeyValuePair<TKey, TValue> pair, out TKey key, out TValue value)

Parameters

pair KeyValuePair<TKey, TValue>
key TKey
value TValue

Type Parameters

TKey
TValue

Examples

foreach (var (key, value) in dictionary) {/.../}