title: Enum variable c#
body: <p>This is my enum:</p>
  
  <pre><code>public enum SomeTest
  {
    Undefined = 0,
    Gram = 1,
    Kilogram = 2
  }
  </code></pre>
  
  <p>And this is my Test class:</p>
  
  <pre><code>private SomeTest test;
  
  public Test (SomeTest test)
  {
    this.test = test;
  }
  </code></pre>
  
  <p>I want to set to <code>test</code> my <code>Settings.Default.Test</code> Is it possible?</p>
  
  <pre><code>asd = new Test(Test)
  </code></pre>