|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Collections.Generic;
internal static partial class FxPolyfillKeyValuePair
{
extension<TKey, TValue>(KeyValuePair<TKey, TValue> pair)
{
public void Deconstruct(out TKey key, out TValue value)
{
key = pair.Key;
value = pair.Value;
}
}
}
internal static class KeyValuePair
{
public static KeyValuePair<TKey, TValue> Create<TKey, TValue>(TKey key, TValue value)
{
return new KeyValuePair<TKey, TValue>(key, value);
}
}
|