title: How do I marshall a recursive struct to c sharp?
body: <p>I have an unmanaged struct I'd like to marshal to c sharp that looks basically like this:<br/></p>
  
  <pre><code>struct MyStruct{  
      /* ... some stuff ... */
      int numChilds;  
      MyStruct *childs;
  }
  </code></pre>
  
  <p>I believe that I have to write a custom marshaller but I'm not sure on how to proceed.</p>