interger to binary

  • Thread starter Thread starter mei xiao
  • Start date Start date
M

mei xiao

Hi, there,

I want to change an integer into 4 bytes, what should I do? Thank you.

-May
 
May,
Have you tried the System.BitConverter.GetBytes method?

System.BitConvert has a number of shared methods for converting base types
to & from byte arrays.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top