Merge staging into master (#33462)

This commit is contained in:
slarticodefast 2024-11-22 18:32:30 +01:00 • committed by GitHub
commit 09ca45a621
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,9 @@ public sealed class ImmutableTypedHwid(ImmutableArray<byte> hwid, HwidType type)
return false;
}
hwid = new ImmutableTypedHwid([..array], type);
// ReSharper disable once UseCollectionExpression
// Do not use collection expression, C# compiler is weird and it fails sandbox.
hwid = new ImmutableTypedHwid(ImmutableArray.Create(array), type);
return true;
}