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