Hi,
I created a byte array
--byte[] aByteArray = new byte[64];
and set aByteArray[0] and aByteArray[16] to '1'.
Because I want to create a ulong (UInt64) with these values I do:
UInt64 bb;
bb = BitConverter.ToUInt64(aByteArray,0);
Console.WriteLine(bb);
I get a 1. So I am only getting the first eight bytes of aByteArray. This is
what
the docs say. So how can I get these values into a ulong and back again into
an array.
Why would they have BitConverter only deal with 8 bytes. I am trying hard to
understand
BitArray class, the BitConverter class and the interplay between them.
thanks
grs