Re: Is it possbile to enumerate Methods by Event?
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Fri, 23 Nov 2007 19:15:00 -0000
athos.jingle@xxxxxxxxx <athos.jingle@xxxxxxxxx> wrote:
To attach a method to an event, we can use EventInfo.AddEventHandler.
After attached, given an event's name, is it possible to retrieve all
methods attached to it?
No. An event is really just a pair of methods, add and remove. Although
*usually* there's a delegate variable backing it, the add/remove can do
anything they want, and there's no part of an event which is a "fetch".
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
.
- Follow-Ups:
- Re: Is it possbile to enumerate Methods by Event?
- From: athos.jingle@xxxxxxxxx
- Re: Is it possbile to enumerate Methods by Event?
- References:
- Is it possbile to enumerate Methods by Event?
- From: athos.jingle@xxxxxxxxx
- Is it possbile to enumerate Methods by Event?
- Prev by Date: Re: Generics Question
- Next by Date: Re: Generics Question
- Previous by thread: Is it possbile to enumerate Methods by Event?
- Next by thread: Re: Is it possbile to enumerate Methods by Event?
- Index(es):
Loading