title: Inconsistent accessibility when using enum as parameter
body: <p>So I'm making a small problem, but ran into a problem. I'm trying to open a (WPF) form using an enum as parameter, as you can see in the code snippet below.</p>
  
  <pre><code>public myForm(otherClass.myEnum en)
  {
      InitializeComponent();
      //my other code comes here
  }
  </code></pre>
  
  <p>And in otherClass:</p>
  
  <pre><code>class otherClass
  {
      public enum myEnum
      {
          item1,
          item2
      }
  }
  </code></pre>
  
  <p>Now, my problem is that Visual Studio is giving me the following error:</p>
  
  <pre><code>Error   1   Inconsistent accessibility: parameter type 'myProject.otherClass.myEnum' is less accessible than method 'myProject.myForm.myForm(myProject.otherClass.myEnum)'  C:\Users\MyUsername\Documents\Visual Studio 2013\Projects\MyProject\MyProject\myForm.xaml.cs    46  16  myForm
  </code></pre>
  
  <p>However, the enum is public. I looked up the error, but other people usually forgot to make their enum, and I did make mine public. I also prefer not to move the enum to my form class. </p>
  
  <p>All help is appreciated!</p>