Hi, I realize the title needs to be read more than once for understanding ... :)
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:
public delegate void TestMethod();
I have a struct that accepts that delegate as a parameter
struct TestMetaData
{
TestMethod method;
string testName;
}
Is it possible to get from reflection a method that has the custom attribute and pass it to the struct into the 'method' member ?
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.