title: interface for an enum
body: <p>I'm trying to port an existing C# project to a new distributed one, using interfaces connecting client and server components (its a Sokoban game for a college exercise).</p>
  
  <p>And here is my issue:</p>
  
  <p>In one component, say: Level.cs, i have:</p>
  
  <p>Level.cs</p>
  
  <pre><code>namespace Sokoban
  {
  public enum MoveDirection { Right, Left, Down, Up }
  
  
  public class Level
      {
      private MoveDirection sokoDirection = MoveDirection.Right;
      ...
      }
  ...
  }
  </code></pre>
  
  <p>And by the other hand, the interfaces:</p>
  
  <p>Interfaces.cs:</p>
  
  <pre><code>namespace Interfaces
      {
      public class ILevel : MarshalByRefObject
          {
          ---&gt; what should i place here??? &lt;---
          }
      }
  </code></pre>
  
  <p>I've tried with no success the following options:</p>
  
  <p>Interfaces.cs:</p>
  
  <pre><code>public virtual enum MoveDirection { get; set; }
  public virtual enum MoveDirection() { throw new NotImplementedException(); }
  </code></pre>
  
  <p>Level.cs:</p>
  
  <pre><code>public static enum MoveDirection { return { Right, Left... }; }
  public static enum MoveDirection { get { return { right, Left, ...}; } }
  </code></pre>