Numeric to array of byte

  • Thread starter Thread starter Richard L Rosenheim
  • Start date Start date
R

Richard L Rosenheim

I know about BitConverter to convert an array of Byte to a numerical value
(like ToInt64). I haven't been able to find the inverse -- to convert the
numerical variable into an array of Byte.

Is there such methods in the Framework?

Richard Rosenheim
 
See BitConverter.GetBytes(). It has many overloads for various data types.

I know about BitConverter to convert an array of Byte to a numerical value
(like ToInt64). I haven't been able to find the inverse -- to convert the
numerical variable into an array of Byte.

Is there such methods in the Framework?

Richard Rosenheim
 

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