Search Results for

    Show / Hide Table of Contents
    View Source

    Class KeyValuePairExtensions

    Provides extension methods for the struct.

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class KeyValuePairExtensions

    Methods

    View Source

    Deconstruct<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
    KeyValuePair<TKey, TValue> kvp
    TKey key
    TValue value
    Type Parameters
    Name Description
    TKey
    TValue
    Remarks

    Allows for foreach ((var k, var v) in ...).

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Deconstruct<TKey, TValue>(KeyValuePair<TKey, TValue>, out TKey, out TValue)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX