I understand that the name needs to be read more than once to understand ... :)
I applied a special attribute that I apply to methods in my classes. all methods apply the attribute to the same signature, and so I defined a delegate for them:
public delegate void TestMethod();
I have a structure that accepts this delegate as a parameter
struct TestMetaData { TestMethod method; string testName; }
Is it possible to get a method from a reflection that has a custom attribute and pass it to the structure in the method member?
I know that you can call it, but I think that thinking will not give me the actual method from my class, which I can apply to the TestMethod delegate.
reflection methods c # attributes delegates
thedrs
source share