title: C# How to use get, set and use enums in a class
body: <p>I have a program where I use a class store settings. I need it to use set and get functions to change and store settings. I have tried this, and I don't get it to work. Can anyone help me with this one?</p>
  
  <pre><code>    private enum _Difficulty { Easy, Normal, Hard };
  
      public void SetDifficulty(Difficulty)
      {
          _Difficulty = Difficulty;
      }
  
      public enum GetDifficulty()
      {
          return _Difficulty;
      }
  </code></pre>
  
  <p>Is there no way to use <code>enums</code> in a class with <code>get</code> and <code>set</code>?</p>
  
  <p>I also need this with <code>bool</code> and <code>int</code>.</p>