|
On Sat, 2003-08-16 at 15:17, Hamza Karamali
wrote:
> Hi, > > If I attach a custom attribute called "myAttribute" to a certain method, > how can I check in Mono (while the method is being compiled) whether a > method has this attribute? Is there a function that will search the > metadata for the attribute if I pass it the name of the attribute? If > not, how would I go about doing this? > Just call:
TypeDescriptor.GetAttributes(TheObjectThatShouldBeTested)
and check for the attribute in the result
AttributeCollection
(Please note that this function may not be
completed 100% in Mono right now)
Andreas
|
- [Mono-list] Method Attributes Hamza Karamali
- Re: [Mono-list] Method Attributes Duncan Mak
- [Mono-list] Method Attributes Andreas Nahr
- [Mono-list] Method Attributes Hamza Karamali
- Re: [Mono-list] Method Attributes Paolo Molaro
