I need to check for a string located inside a packet that I receive as byte array. If I use BitConverter.ToString(), I get the bytes a
string
byte
BitConverter.ToString()
Your reference to "0x31 = 1" makes me think you're actually trying to convert ASCII values to strings - in which case you should be using something like Encoding.ASCII.GetString(Byte[])