🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: C# 2.0

#646
From: Rudy Velthuis [TeamB]
Date: Sun, 25 Jul 2004 20:38
22 lines
1702 bytes
At 08:56:13, 21.07.2004, Jon Shemitz wrote:

> public static IEnumerable<Control> AllControls(Control root)
> {
>   foreach (Control Child in root.Controls)
>   {
>     yield return Child;
>     foreach (Control GrandChild in AllControls(Child))
>       yield return GrandChild;
>   }
> }
> 
> // Damn, that's easy

That's almost exactly like in the Icon language.
-- 
Rudy Velthuis [TeamB]

"If the automobile had followed the same development cycle as the
 computer, a Rolls-Royce would today cost $100, get a million miles
 per gallon, and explode once a year, killing everyone inside."
 -- Robert X. Cringely.
Technical Details
Message-ID: <xn0dl79i4k9mxt009-moderator@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40FE138D.D0A0F368@midnightbeach.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,169d36351e297cad
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Rudy Velthuis [TeamB]" <velthuis@gmail.com>
Subject: Re: C# 2.0
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <40FE138D.D0A0F368@midnightbeach.com>
Organization: TeamB
User-Agent: XanaNews/1.16.3.1
Date: Sun, 25 Jul 2004 22:38:56 +0200
Message-ID: <xn0dl79i4k9mxt009-moderator@newsgroups.borland.com>
X-Realname: Rudy Velthuis (TeamB)
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr
 p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
X-Ref: newsgroups.borland.com ~XNS:0000420A
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.85.250.30
X-Trace: newsgroups.borland.com 1090787641 217.85.250.30 (25 Jul 2004 13:34:01 -0700)
Lines: 22
X-Authenticated-User: rvelthuis
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail