From 19c7ab3d1df8e3699a5103f3cf3c36cf350e2146 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Wed, 10 Dec 2025 07:17:46 +0100 Subject: [PATCH] Core(NamedData) - Add implicit operator for 'KeyValuePair' --- PckStudio.Core/NamedData.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PckStudio.Core/NamedData.cs b/PckStudio.Core/NamedData.cs index 717db6f6..fcaae8db 100644 --- a/PckStudio.Core/NamedData.cs +++ b/PckStudio.Core/NamedData.cs @@ -10,5 +10,7 @@ namespace PckStudio.Core { public readonly string Name = name; public readonly T Value = value; + + public static implicit operator NamedData(KeyValuePair kvp) => new NamedData(kvp.Key, kvp.Value); } }