Article View: borland.public.csharpbuilder.language.csharp
Article #240Re: event versus simple delegate
From: Joanna Carter [TeamB]
Date: Sat, 29 Jul 2006 20:23
Date: Sat, 29 Jul 2006 20:23
19 lines
1611 bytes
1611 bytes
"Francois PIETTE [ICS - MidWare]" <francois.piette@overbyte.be> a οΏ½crit dans le message de news: 44cba8c5@newsgroups.borland.com... |I was speaking about C# v1 which has a slightly different syntax. | | Can you explain what difference there is (C# V1) declaring an event member | using the event keyword and declaring a member which is simply a delegate ? C# 1.1 uses the longer syntax for multicast use but you can use the shorter direct assignment for simple delegation. AFAICT, using the event keyword restricts use to multicast. Joanna -- Joanna Carter [TeamB] Consultant Software Engineer
Technical Details
Message-ID:
<44cbc3a8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44cb7da5$1@newsgroups.borland.com> <44cb81eb@newsgroups.borland.com> <44cba8c5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,62beb5b391211bf0 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII From: "Joanna Carter [TeamB]" <joanna@not.for.spam> Newsgroups: borland.public.csharpbuilder.language.csharp References: <44cb7da5$1@newsgroups.borland.com> <44cb81eb@newsgroups.borland.com> <44cba8c5@newsgroups.borland.com> Subject: Re: event versus simple delegate Date: Sat, 29 Jul 2006 21:23:00 +0100 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 82.69.239.102 Message-ID: <44cbc3a8@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154204584 82.69.239.102 (29 Jul 2006 13:23:04 -0700) X-Authenticated-User: jcarter Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail