mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-15 14:32:05 +00:00
Core(NamedData<T>) - Add implicit operator for 'KeyValuePair<string , T>'
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user