Fix usage of collection literals

(cherry picked from commit 6d3e827e64597e787c33382ecc86e75adf090710)
This commit is contained in:
PJB3005
2025-12-01 20:56:51 +01:00
parent d6338ba8e2
commit ce0415f9a6

View File

@@ -38,7 +38,7 @@ internal sealed class NetBitArraySerializer : IStaticTypeSerializer
public IEnumerable<Type> GetSubtypes(Type type)
{
return [typeof(int[]), typeof(int)];
return new Type[] { typeof(int[]), typeof(int) };
}
public MethodInfo GetStaticWriter(Type type)