title: How to declare an enum in an .IDL file?
body: <p>I have a runtimeclass that I would like to add an enum to. I have tried the following syntax as suggested by the MSDN documentation here: <a href="https://docs.microsoft.com/en-ca/uwp/midl-3/intro" rel="nofollow noreferrer">https://docs.microsoft.com/en-ca/uwp/midl-3/intro</a></p>
  
  <pre><code>namespace my_project
  {
      runtimeclass my_rt_class
      {        
          enum my_enum
          {
              first = 0,
              second = 1
          };
      }
  }
  </code></pre>
  
  <p>However I get the following error from MIDL: </p>
  
  <pre><code>error MIDL2025: [msg]syntax error [context]: expecting an identifier near ";"
  </code></pre>
  
  <p>Whats the correct syntax for this? I am using version <code>10.0.17763.0</code> of the windows SDK.</p>