title: How do I binary serialize a object using Compact Framework?
body: <p>I have a object</p>
  
  <pre><code>struct _NETINFO { }
  </code></pre>
  
  <p>and I want to convert it to a Byte[] using Compact Framework, I tried the following without sucess:</p>
  
  <pre><code>_NETINFO info = new _NETINFO();
  byte[] buffer = (byte[])info;
  </code></pre>
  
  <p>And it doesn't work! The only other sugestion I found is to use the BinaryFormatter which isn't available in CF!</p>
  
  <p>Any other sugestions?</p>