I'm adding value to an array of bytes with the following code:
byte[] ConnectionPath;
ConnectionPath[0] = 0;
ConnectionPath[1] = 2;
ConnectionPath[2] = 1;
ConnectionPath[3] = 0;
My question is, can't I do this in just 1 line of code? I tried this, but this doesn't work. (I know that you can do this by declaration, but of course this value changes through the program)
ConnectionPath = { 0, 2, 1, 0};