title: fixed values for property c#
body: <p>I have an <code>Movement</code> class as a property for my objects.</p>
  
  <p>What I want to do is only be able to set determined values for this property, ex:</p>
  
  <pre><code>class Movement
  {
      public Direction Moving;
      public Direction Facing;
  }
  
  Movement movement = new Movement():
  
  movement.Moving = Direction.Up;
  movement.Facing = Direction.Down;
  </code></pre>
  
  <p>I could make <code>Direction.Up/Down/Left/Right</code> constant strings, but i dont want to be able to set anything that's not Direction.Up/Down/Left/Right' to the property. </p>
  
  <p>but i don't know how to make the <code>Direction</code> class.</p>