I am trying to create byte [], given a certain number of bytes. Here is an example:
ArrayList al = new ArrayList(); al.Add(0xCA); al.Add(0x04); byte[] test = (byte[])al.ToArray(typeof(byte));
I get an error that one or more of the values ββin the array cannot be converted to bytes. What am I doing wrong here?
thanks
source share