title: convert string to byte array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa-in-c">How do you convert Byte Array to Hexadecimal String, and vice versa, in C#?</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possbile to convert the content of a string in exactly the same way to a byte array?</p>
  
  <p>For example: I have a string like:</p>
  
  <pre><code>string strBytes="0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89";
  </code></pre>
  
  <p>Is there any function which can give me the following result if  i pass strBytes to it.</p>
  
  <pre><code>Byte[] convertedbytes ={0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89};
  </code></pre>