C# equivalent to C const char**

后端 未结 5 1245
鱼传尺愫
鱼传尺愫 2021-01-22 10:42

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.

This is my cu

5条回答
  •  既然无缘
    2021-01-22 11:26

    char[] in C# is a String.

    Looks like you are defining a pointer to a char[]. In C this is the Array of Arrays, right? So in C# it would be just:

    String[] options = {
     "document_root", "/var/www",
     "listening_ports", "80,443s",
     NULL
    };
    

    Hope it helps.

    Regards.

提交回复
热议问题