SyntaxFix
Write A Post
Hire A Developer
Questions
The other way is to use BinaryPrimitives like so
byte[] intBytes = BitConverter.GetBytes(123); int actual = BinaryPrimitives.ReadInt32LittleEndian(intBytes);