I expected this to be a pretty easy exercise cause it only is supposed to explain the concept, but it's the first Exercise I can't finish somehow.
Console.WriteLine("Long: " + reading.ToString());
byte[] bytes = BitConverter.GetBytes(reading);
Console.WriteLine("Bytes:");
Console.WriteLine(BitConverter.ToString(bytes));
return bytes;
I thought just using BitConverter.GetBytes would be enough to do this. But the arrays will not be what the test results wanna see.
After trying to check the values with WriteLine and asking ChatGPT I still can't understand what I'm supposed to do so I hope someone here can help me with this exercise.
Thanks in advance.
Second function where we use ToInt also doesn't work how I expected this to be...