title: Marshalling a struct containing c-strings
body: <p>I have a C++ struct</p>
  
  <pre><code>struct UnmanagedStruct
  {
     char* s;
  };
  </code></pre>
  
  <p>and a C# struct</p>
  
  <pre><code>struct ManagedStruct {
     string s;
  }
  </code></pre>
  
  <p>How can I marshal the <code>UnmanagedStruct</code>? Do I need to use a StringBuilder?</p>
  
  <p>the C++ library exposes <code>UnmanagedStruct</code> getStruct();</p>