title: How can I pass a method acquired by reflection in C# to a method that accepts the method as a delegate?
body: <p>I realize the title needs to be read more than once for understanding ... :)</p>
  
  <p>I implemented a custom attribute that i apply to methods in my classes.
  all methods i apply the attribute to have the same signature and thus i defined a delegate for them:</p>
  
  <pre><code>public delegate void TestMethod();
  </code></pre>
  
  <p>I have a struct that accepts that delegate as a parameter</p>
  
  <pre><code>struct TestMetaData
  {
    TestMethod method;
    string testName;
  }
  </code></pre>
  
  <p>Is it possible to get from reflection a method that has the custom attribute and <strong>pass it to the struct into the 'method' member ?</strong></p>
  
  <p>I know you can invoke it but i think reflection won't give me the actual method from my class that i can cast to the TestMethod delegate.</p>