mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
11 lines
324 B
C#
11 lines
324 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace RGB.NET.Devices.Novation
|
|
{
|
|
internal static class DictionaryExtension
|
|
{
|
|
public static Dictionary<TValue, TKey> SwapKeyValue<TKey, TValue>(this Dictionary<TKey, TValue> dictionary) => dictionary.ToDictionary(x => x.Value, x => x.Key);
|
|
}
|
|
}
|