Forums - C# Corner

Forum guidelines
kyle

kyle

  • 0
  • 0
  • 0

Convert from hexadecimal to bytes

Nov 25 2008 8:53 PM
Hello Everyone,

I am reading in hexadecimal values into a C# program that are coming in the serial port buffer as ASCII text representation of hex.  I need to convert this down to the bit level so I can see certain 0's become 1's when specific switches are toggled.  How would I accomplish this?

Thank you in advance for your help.

Answers (14)

C# Corner Hyderabad Developer Conference

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.