🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #202

Re: Custom Delegation

#202
From: Andre
Date: Tue, 30 May 2006 07:40
34 lines
2143 bytes
Default implementation it is. Thanks for the help.

"Marc Rohloff [TeamB]" <"on request"> wrote in message 
news:1ol94ym2046bi$.dlg@dlg.marcrohloff.com...
> On Mon, 29 May 2006 16:04:49 +0200, Andre wrote:
>
>>> almost anything could happen.
>>> The best practice is probably to always remove the events.
>>
>> by this you mean that i should define special 'remove' for my event like
>> {
>>     public event eventHandler onEvent
>>     {
>>         remove {//// some cleanup code }
>>     }
>>
>> and then use -= in object dispose.
>> }
>> or
>> {
>>     just use the -= in object dispose.
>> }
>
> I am not sure where you are going.
> What I meant is that if you subscribe for an event then you should
> unsubscribe when you are finished or when you are disposed.
>
> If you are writing event properties you should probably stick with the
> default implementation.
>
> -- 
> Marc Rohloff [TeamB]
> marc rohloff -at- myrealbox -dot- com 
Technical Details
Message-ID: <447bf6eb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <447aa0bd@newsgroups.borland.com> <15xbx0js9z62p.dlg@dlg.marcrohloff.com> <447aff84@newsgroups.borland.com> <1ol94ym2046bi$.dlg@dlg.marcrohloff.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,bb4758d9cad65d98
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andre" <andretruter@webmail.co.za>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <447aa0bd@newsgroups.borland.com> <15xbx0js9z62p.dlg@dlg.marcrohloff.com> <447aff84@newsgroups.borland.com> <1ol94ym2046bi$.dlg@dlg.marcrohloff.com>
Subject: Re: Custom Delegation
Date: Tue, 30 May 2006 09:40:28 +0200
Lines: 36
Organization: Bluewater Systems
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 0622-1, 05/29/2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 196.207.45.253
Message-ID: <447bf6eb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1148974827 196.207.45.253 (30 May 2006 00:40:27 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail