title: How to get custom a list of methods with reflection in C#
body: <p>I have being using reflection to create a list of methods that the user would use in a dynamic generated menu (I'am in unity). I'am using:</p>
  
  <pre><code>MethodInfo[] methodInfos =  myObject.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly);
  </code></pre>
  
  <p>But not all public methods of the class should appear in this menu, so I was wondering, is there some flag which I could use to mark only the methods that I need? </p>
  
  <p>And then use this "custom flag" to get those methods through reflection. Thanks :).</p>