Using enum in c++ and c# via c++ header
<p>I've got a server written in C++ that sits at the end of a named pipe, um, serving things. The commands which can be sent to the server are defined in an enum which is located in a header file.</p>

<pre><code>enum {
    e_doThing1,
    e_doThing2
    ...
    e_doLastThing
};
</code></pre>

<p>The value of the desired enum is put into the first byte of messages sent to the server so it knows what to do. I am now writing a C# client which needs access to the services. </p>

<p>Is there any way I can include the header into the C# code so I don't have to maintain the same list in two locations?</p>

<p>Thanks,
Patrick</p>
