title: C#: Wrapping one Enum inside another (ie. mirroring another enum/copying it...)
body: <p>Here's my problem: I have an object that's referencing a DLL. I would like other objects to reference my object, without having to also include a reference to the DLL itself.</p>
  
  <p>This is fine for the most part except there is an enum in the DLL that I would like to replicate. I could write out the enum line by line, but I'm wondering if there's a better way to do this.</p>
  
  <p>ie.</p>
  
  <p>Let's say the DLL's got the following enum:</p>
  
  <pre><code>public enum dllEnum
  {
    value1,
    value2,
    value3
  }
  </code></pre>
  
  <p>I could do the following:</p>
  
  <pre><code>public enum myEnum
  {
    value1,
    value2,
    value3
  }
  </code></pre>
  
  <p>or better yet:</p>
  
  <pre><code>public enum myEnum
  {
    value1 = dllEnum.value1,
    value2 = dllEnum.value2,
    value3 = dllEnum.value3
  }
  </code></pre>
  
  <p>But each of these cases has me writing out the entire enum out myself. I would rather just be able to wrap the entire enum as my own, preserving the indexes of the original enum.</p>
  
  <p>Something along the lines of:</p>
  
  <pre><code>public enum myEnum
  {
    Enum.GetValues(dllEnum)
  }
  </code></pre>