Using SitCore I am retrieving 424 registers from a device over Modbus using a series of multiple requests. The values are stored in a ushort[424] array. I need to convert it to a byte array for various uses. Is there a quick way to do it?
I can do it with a For loop but I am curious if there is a better way.
In C I would use a Union Struct but I don’t see a way to do that with C#.