title: Converting from hex to string
body: <p>I need to check for a <code>string</code> located inside a packet that I receive as <code>byte</code> array. If I use <code>BitConverter.ToString()</code>, I get the bytes as <code>string</code> with dashes (f.e.: 00-50-25-40-A5-FF).<br>
  I tried most functions I found after a quick googling, but most of them have input parameter type <code>string</code> and if I call them with the <code>string</code> with dashes, It throws an exception.</p>
  
  <p>I need a function that turns hex(as <code>string</code> or as <code>byte</code>) into the <code>string</code> that represents the hexadecimal value(f.e.: 0x31 = 1). If the input parameter is <code>string</code>, the function should recognize dashes(example "47-61-74-65-77-61-79-53-65-72-76-65-72"), because <code>BitConverter</code> doesn't convert correctly.</p>