title: How to use a private enum in a private method using reflection?
body: <p>I got an internal method where one of the input parameter is an internal Enum. How do I get a enum value and pass it to the method?</p>
  
  <p>Example:</p>
  
  <pre><code>internal enum MyEnum
  {
      One,
      Two,
      Three
  }
  
  
  internal int InternalTest(string test, MyEnum enumTest)
  {
      return test.Length;
  }
  </code></pre>
  
  <p>And then obtained by something like this:</p>
  
  <pre><code>MethodInfo addInternal = typeof(Class1).GetMethod("InternalTest", BindingFlags.Instance | BindingFlags.NonPublic, null, new Type[] { typeof(string), typeof(?????) }, null);
  </code></pre>
  
  <p>Thanks!</p>
  
  <p>Ivar</p>