M
MuZZy
Hi,
I need to do some custom processing of event handlers assigned to a
particular event in my user control, e.g. when you add a handler it
should first remove it to make sure any given handler is not added twice
thruout the application. I was told i can use declaration of an event in
the form:
public event SelectedValueChangedHandler SelValueChanged
{
add
{
...
}
remove
{
...
}
}
but how do i really use it? Could anyone please give an example?
Amazingly google didn't show almost any info on that. Is it uncommon to
override add/remove for events?
Any ideas/comments are highly appreciated!
Thank you,
MuZZy
I need to do some custom processing of event handlers assigned to a
particular event in my user control, e.g. when you add a handler it
should first remove it to make sure any given handler is not added twice
thruout the application. I was told i can use declaration of an event in
the form:
public event SelectedValueChangedHandler SelValueChanged
{
add
{
...
}
remove
{
...
}
}
but how do i really use it? Could anyone please give an example?
Amazingly google didn't show almost any info on that. Is it uncommon to
override add/remove for events?
Any ideas/comments are highly appreciated!
Thank you,
MuZZy