🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: C# 2.0

#552
From: Jon Shemitz
Date: Mon, 26 Jul 2004 21:13
19 lines
1875 bytes
"Rudy Velthuis [TeamB]" wrote:

> I know this is not eas,y since I'd somehow have to pass variables. I
> would rather be using nested, but named methods instead. That way they
> can even be reused. This is IMO not possible in C#.

Nothing says you can't assign the anonymous method to a named
delegate, but that does sort of defeat the point. There ARE plenty of
times when you write a tiny method that's only used in one call-back;
anonymous methods keep the code together, so you can read (and
maintain) it with less jumping around.

If there is some point to using the code in more than one place, then
you DO you use a named method, that's all.

-- 

programmer, author  http://www.midnightbeach.com
and father          http://www.midnightbeach.com/hs
Technical Details
Message-ID: <410573EE.7DA05388@midnightbeach.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40FE138D.D0A0F368@midnightbeach.com> <41049F97.B701E290@midnightbeach.com> <xn0dl8annr622006-moderator@newsgroups.borland.com> <410544E2.B48A179C@midnightbeach.com> <xn0dl8kopeeohm01r-moderator@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,169d36351e297cad
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <410573EE.7DA05388@midnightbeach.com>
Date: Mon, 26 Jul 2004 14:13:18 -0700
From: Jon Shemitz <jon@midnightbeach.com>
Reply-To: jon@midnightbeach.com
Organization: Midnight Beach
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en-US,en
MIME-Version: 1.0
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: Re: C# 2.0
References: <40FE138D.D0A0F368@midnightbeach.com> <41049F97.B701E290@midnightbeach.com> <xn0dl8annr622006-moderator@newsgroups.borland.com> <410544E2.B48A179C@midnightbeach.com> <xn0dl8kopeeohm01r-moderator@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 63.249.65.27
X-Trace: newsgroups.borland.com 1090876400 63.249.65.27 (26 Jul 2004 14:13:20 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail