title: C# enums as function parameters?
body: <p>Can you pass a standard c# enum as a parameter? </p>
  
  <p>For example:</p>
  
  <pre><code>enum e1
  {
      //...
  }
  
  enum e2
  {
      //...
  }
  
  public void test()
  {
      myFunc( e1 );
      myFunc( e2 );
  }
  
  public void myFunc( Enum e )
  {
      // Iterate through all the values in e
  }
  </code></pre>
  
  <p>By doing this I hope to retrieve all the names within any given enum. What would the Iteration code look like?</p>