c# add int to byte array code example Example: c# get binary array from int byte[] bytes = BitConverter.GetBytes(i);