Tony Johansson <(E-Mail Removed)> wrote:
<snip>
> How do I remove for example new Greeting(SayGoodnight);
> from ourGreeting. Is that really possible without creating an delegete
> instance like
> Greeting nightGreeting = new Greeting(SayGoodnight); and then use this
> construction
> ourGreeting -= nightGreeting ;
Well, you could do it in one go:
ourGreeting -= new Greeting(SayGoodnight);
That will work fine.
There's no way of doing it without constructing a delegate instance
though.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
World class .NET training in the UK:
http://iterativetraining.co.uk