This does not match metadata.
You can pass a method as a string, and also specify a class if you just want to call a static method.
[SomeAttribute(typeof(SomeClass), @"SomeStaticMethod")]
Naturally, you will have to refer to it through reflection, but since you are still viewing user attributes, this is probably not a big deviation.
source
share