hi all,
I have this:
// custom attribute
[AttributeUsage( AttributeTarget s.Field)]
internal class ThingAttribute : System.Attribut e
{ ... }
enum LotsOfThing
{
[ThingAttribute( "asd")] < == use custom attribute here
onesingular;
}
// call a method using above ...
c.method(LotsOf Thing.onesingul ar);
void method(LotsOfTh ing 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