Importing C++ enumerations into C#
<p>I'm currently working on creating a new C# project that needs to interact with an older C++ application. There is an error enumeration that already exists in the C++ app that I need to use in the C# app.</p>

<p>I don't want to just redeclare the enumeration in C# because that could cause sync issues down the line if the files aren't updated together. </p>

<p>All that being said my question is this:
Is there a way for me to taken an enumeration declared like so:</p>

<pre><code>typedef enum
{
    eDEVICEINT_ERR_FATAL = 0x10001
    ...
} eDeviceIntErrCodes;
</code></pre>

<p>and use it in a C# program like so:</p>

<pre><code>eDeviceIntErrCodes.eDEVICEINT_ERR_FATAL
</code></pre>
