title: How can i get enum to contain a dash (-)?
body: <p>I'm generating business objects from <a href="http://schemas.opengis.net/oseo/1.0/oseo.xsd" rel="noreferrer">this schema</a> using Enterprise Architect.</p>
  
  <p>The schema has the following enumeration specification:</p>
  
  <pre><code>&lt;xs:simpleType name="PackageMedium"&gt;
      &lt;xs:restriction base="xs:string"&gt;
          &lt;xs:enumeration value="NTP"/&gt;
          &lt;xs:enumeration value="DAT"/&gt;
          &lt;xs:enumeration value="Exabyte"/&gt;
          &lt;xs:enumeration value="CD-ROM"/&gt;
          &lt;xs:enumeration value="DLT"/&gt;
          &lt;xs:enumeration value="D1"/&gt;
          &lt;xs:enumeration value="DVD"/&gt;
          &lt;xs:enumeration value="BD"/&gt;
          &lt;xs:enumeration value="LTO"/&gt;
          &lt;xs:enumeration value="LTO2"/&gt;
          &lt;xs:enumeration value="LTO4"/&gt;
      &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  </code></pre>
  
  <p>Enterprise architect generates the following code but Visual Studio doesn't like the dash(-) in CD-ROM and will not compile.</p>
  
  <pre><code>public enum PackageMedium : int {
      NTP,
      DAT,
      Exabyte,
      CD-ROM,
      DLT,
      D1,
      DVD,
      BD,
      LTO,
      LTO2,
      LTO4
  }
  </code></pre>
  
  <p><strong>What can i do to make this work?</strong></p>
  
  <hr>
  
  <p>based on @Craig Stuntz answer i was able to find <a href="http://blog.waynehartman.com/articles/84.aspx" rel="noreferrer">this article</a> which helped me retrieve these special characters from the Enum.</p>