Skip to content

Commit

Permalink
etc
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus committed Sep 14, 2023
1 parent d34972a commit 1023dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DotNet/Bootsharp.Builder/Utilities/TypeUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ namespace Bootsharp.Builder;

internal static class TypeUtilities
{
private static readonly HashSet<string> native = new[] {
private static readonly IReadOnlySet<string> 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!,
typeof(nint).FullName!, typeof(Task).FullName!, typeof(DateTime).FullName!,
typeof(DateTimeOffset).FullName!,
}.ToHashSet();

private static readonly HashSet<string> arrayNative = new[] {
private static readonly IReadOnlySet<string> arrayNative = new[] {
typeof(byte).FullName!, typeof(int).FullName!,
typeof(double).FullName!, typeof(string).FullName!
}.ToHashSet();
Expand Down

0 comments on commit 1023dde

Please sign in to comment.