Hello Einar,
Excuse me for misunderstaning your message.
>I want to convert from
one integer to a byte array and from a byte array to
one integer.
Take a look at the BitConverter Class, I found in the MSDN help the following description about it :
Converts base data types to an array of bytes, and an array of bytes to base data types.
The description resembles a lot whith what you want.
Zakaria al Azhar