From 1023ddeec4481964c7e98e3b4a0aa59b46ed1555 Mon Sep 17 00:00:00 2001 From: Artyom Sovetnikov <2056864+Elringus@users.noreply.github.com> Date: Thu, 14 Sep 2023 19:06:11 +0300 Subject: [PATCH] etc --- DotNet/Bootsharp.Builder/Utilities/TypeUtilities.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DotNet/Bootsharp.Builder/Utilities/TypeUtilities.cs b/DotNet/Bootsharp.Builder/Utilities/TypeUtilities.cs index 4c4d56e3..7bf35114 100644 --- a/DotNet/Bootsharp.Builder/Utilities/TypeUtilities.cs +++ b/DotNet/Bootsharp.Builder/Utilities/TypeUtilities.cs @@ -6,7 +6,7 @@ namespace Bootsharp.Builder; internal static class TypeUtilities { - private static readonly HashSet native = new[] { + private static readonly IReadOnlySet native = new[] { typeof(string).FullName!, typeof(bool).FullName!, typeof(byte).FullName!, typeof(char).FullName!, typeof(short).FullName!, typeof(long).FullName!, typeof(int).FullName!, typeof(float).FullName!, typeof(double).FullName!, @@ -14,7 +14,7 @@ internal static class TypeUtilities typeof(DateTimeOffset).FullName!, }.ToHashSet(); - private static readonly HashSet arrayNative = new[] { + private static readonly IReadOnlySet arrayNative = new[] { typeof(byte).FullName!, typeof(int).FullName!, typeof(double).FullName!, typeof(string).FullName! }.ToHashSet();