🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ArrayList inside ArrayList clone problem

#499
From: Jon Shemitz
Date: Mon, 01 Nov 2004 16:43
13 lines
1429 bytes
Pujo Aji wrote:
 
> I would like to make a program which can handle ArrayList in ArrayList so it
> is able to simulate 2D dynamic Array, it is ok but I have a problem when I
> would like to do shallow copy in my ArrayList inside ArrayList.

Make the outer array a new class, which descends from ArrayList and
overrides Clone.

-- 

programmer, author  http://www.midnightbeach.com
and father          http://www.midnightbeach.com/hs
Technical Details
Message-ID: <418667C2.D10E1A9B@midnightbeach.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4185e412@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,79070386737afa4f
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <418667C2.D10E1A9B@midnightbeach.com>
Date: Mon, 01 Nov 2004 08:43:46 -0800
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: ArrayList inside ArrayList clone problem
References: <4185e412@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 1099327441 63.249.65.27 (1 Nov 2004 08:44:01 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail