title: How do I use reflection to invoke a private method?
body: <p>There are a group of private methods in my class, and I need to call one dynamically based on an input value. Both the invoking code and the target methods are in the same instance. The code looks like this:</p>
  
  <pre><code>MethodInfo dynMethod = this.GetType().GetMethod("Draw_" + itemType);
  dynMethod.Invoke(this, new object[] { methodParams });
  </code></pre>
  
  <p>In this case, <code>GetMethod()</code> will not return private methods. What <code>BindingFlags</code> do I need to supply to <code>GetMethod()</code> so that it can locate private methods?</p>