title: C# equivalent to C const char**
body: <p>I want to implement a Mongoose (http://code.google.com/p/mongoose/) Binding in C#. There are some examples, but they don't work with the current version. </p>
  
  <p>This is my current function call:</p>
  
  <pre><code>[DllImport("_mongoose",CallingConvention=CallingConvention.Cdecl)] private static extern IntPtr mg_start(int zero, Nullable, string options);
  </code></pre>
  
  <p>The (working) C equivalent would be:</p>
  
  <pre><code>const char *options[] = {
       "document_root", "/var/www",
       "listening_ports", "80,443s",
       NULL
     };
  struct mg_context *ctx = mg_start(&amp;my_func, NULL, options);
  </code></pre>
  
  <p>where mg_start is defined as:</p>
  
  <pre><code>struct mg_context *mg_start(mg_callback_t callback, void *user_data,
                              const char **options);
  </code></pre>
  
  <p>You can find the whole C example here:
  <a href="https://svn.apache.org/repos/asf/incubator/celix/trunk/remote_services/remote_service_admin_http/private/include/mongoose.h" rel="nofollow">https://svn.apache.org/repos/asf/incubator/celix/trunk/remote_services/remote_service_admin_http/private/include/mongoose.h</a></p>
  
  <p>How do I transfer the <code>const char *options[]</code> to c#?</p>
  
  <p>Thank you</p>