title: C# equivalent of Python's struct.pack?
body: <p>Is there any function equivalent to Python's struct.pack and struck.unpack in C# that allows me to pack and unpack values like this?</p>
  
  <pre><code>def hexlongbits2double(str):
      return struct.unpack('d', struct.pack('Q', int(str, 16)))[0] 
  </code></pre>