This seems to be an easy problem but i can\'t figure out.
I need to convert this character < in byte(hex representation), but if i use
You could use the BitConverter.ToString method to convert a byte array to hexadecimal string:
string hex = BitConverter.ToString(new byte[] { Convert.ToByte('<') });
or simply:
string hex = Convert.ToByte('<').ToString("x2");