I have an array and i want to assign it to another array variable. Here is the code
for (int i = 0; i < length; i++)
{
arr1[i] = Convert.ToByte(Tag_uid.Substring(2 * i, 2), 16);
}
//Create an array to hold the Command Packet
byte[] CommandPacket = new byte[9];
CommandPacket[0] = arr1; //ERROR: cannot convert type byte[] to byte
How can i assign the whole array values to commandpacket[0]?
How about