Remove the duplicate byte TomlTypeConverter registration (#1359)

typeof(byte) was registered twice in the TypeConverters initializer; the
second entry silently overwrote the first. Keep the one grouped with the
other integral types.
This commit is contained in:
HetCreep authored and GitHub committed 2026-06-21 12:10:28 +02:00
1 parent 5f39645992
commit 32fb12f2e9
1 file changed
-5
@@ -31,11 +31,6 @@ public static class TomlTypeConverter
ConvertToString = (obj, type) => obj.ToString().ToLowerInvariant(), ConvertToString = (obj, type) => obj.ToString().ToLowerInvariant(),
ConvertToObject = (str, type) => bool.Parse(str) ConvertToObject = (str, type) => bool.Parse(str)
}, },
[typeof(byte)] = new TypeConverter
{
ConvertToString = (obj, type) => obj.ToString(),
ConvertToObject = (str, type) => byte.Parse(str)
},
//integral types //integral types