event handler  
Author Message
abayer





PostPosted: Thu Nov 25 09:30:59 CST 2004 Top

Dotnet >> event handler Please help.
My bread is at stake.
How do i know if a event has a handler associated with it?.
I dont want to keep counters myself.
Please , if any reader can reply, sedn a direct reply mail also to
EMail@HideDomain.com
Mahesh Naik

DotNet9  
 
 
Jon





PostPosted: Thu Nov 25 09:30:59 CST 2004 Top

Dotnet >> event handler [Posted and mailed]

Mahesh Naik <EMail@HideDomain.com> wrote:
> My bread is at stake.
> How do i know if a event has a handler associated with it?.
> I dont want to keep counters myself.

If this is in your own class, you can check whether or not the event
(or rather, the delegate field associated with the event) is null. If
it's not in your own class, you can't find out.

> Please , if any reader can reply, sedn a direct reply mail also to
> EMail@HideDomain.com

Newsgroups aren't a write-only medium. Please read where you post in
future.

--
Jon Skeet - <EMail@HideDomain.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too