Core(NamedData<T>) - Add implicit operator for 'KeyValuePair<string , T>'

This commit is contained in:
miku-666
2025-12-10 07:17:46 +01:00
parent 2e7487eb69
commit 19c7ab3d1d

View File

@@ -10,5 +10,7 @@ namespace PckStudio.Core
{
public readonly string Name = name;
public readonly T Value = value;
public static implicit operator NamedData<T>(KeyValuePair<string , T> kvp) => new NamedData<T>(kvp.Key, kvp.Value);
}
}