转变为字节数组
在textBox中输入一串数字,例如:1234567890123456如何转变为8个字节数组(12 34 56 78 90 12 34 56)

string s = "1234567890123456"; byte [] arr = new byte[s.Length/2]; for(var i =0;i<arr.Length;++i) { arr[i] = byte.Parse( s.Substring(i*2,2) ); }