KeyValuePair<TKey,TValue>.Deconstruct(TKey, TValue) Method

Definition

Deconstructs the current KeyValuePair<TKey,TValue>.

C#
public void Deconstruct(out TKey key, out TValue value);

Parameters

key
TKey

The key of the current KeyValuePair<TKey,TValue>.

value
TValue

The value of the current KeyValuePair<TKey,TValue>.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1