title: C#: Access Enum from another class
body: <p>I know I can put my enum at the Namespace area of a class so everyone can access it being in the same namespace.</p>
  
  <pre><code>// defined in class2
  public enum Mode { Selected, New, }  
  </code></pre>
  
  <p>What I want is to access this enum from </p>
  
  <pre><code>public class1
  {
     var class2 = new class2();
     // Set the Mode
     class2.Mode = Model.Selected
  }
  </code></pre>
  
  <p>Is this somehow possible without using namespace area?</p>