hi all,
I have this:
// custom attribute
[AttributeUsage(AttributeTargets.Field)]
internal class ThingAttribute : System.Attribute
{ ... }
enum LotsOfThing
{
[ThingAttribute("asd")] < == use custom attribute here
onesingular;
}
// call a method using above ...
c.method(LotsOfThing.onesingular);
void method(LotsOfThing value)
{
ThingAttribute ta = ???? < == how do I get to the custom attribute on
value?
}
This should be really easy but i just can't work out how to get to the
custom attribute on the "value" parameter.
TIA
bg