mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 10:26:11 +08:00
Add support for dotnet 10 (#2229)
* Add dotnet10 as target framework and fix breaking changes * Fix tests * Fix tests for CI * Fix typo
This commit is contained in:
@@ -520,10 +520,11 @@ public sealed class SubscriptionTopicHashTests : IDisposable
|
||||
static byte[] GetBytes(ulong value)
|
||||
{
|
||||
var bytes = BitConverter.GetBytes(value);
|
||||
|
||||
// Ensure that highest byte comes first for comparison left to right
|
||||
if (BitConverter.IsLittleEndian)
|
||||
{
|
||||
return bytes.Reverse().ToArray();
|
||||
bytes = bytes.AsEnumerable().Reverse().ToArray();
|
||||
}
|
||||
|
||||
return bytes;
|
||||
|
||||
Reference in New Issue
Block a user