Join an ArrayList



I need to join the elements of an arraylist into a comma delimited list and
have been doing the following

string[] x = new string[myArrayList.Count];
myArrayList.CopyTo(x);
string.join(",",x);

I tried string.join(",",myArrayList.ToArray(typeof(string))); but the
compiler complained about converting from an object to a string array.

Is there another, i.e. shorter, way to do this?

Kev
.



Relevant Pages

  • Re: FLT an incurable, unending addiction
    ... > simple proof for FLT, ... > be extracted of any common factor and substituted with ... and z = x + b, which makes everything shorter. ... Prev by Date: ...
    (sci.math)
  • Re: Nadals Schedule for 2006
    ... >say that the hugely physical game he plays is likely to make his peak ... >years shorter than the ever-smooth Federer's, but I'm sure it will be ... Prev by Date: ...
    (rec.sport.tennis)
  • Re: Very odd word puzzle
    ... > ROIW TKAM DWLU HANU GELO IEAO OHFY SRGY LTIE CBEF DDND OOTI ... Initial letters of a poem/song/novel...? ... Kev ... Prev by Date: ...
    (rec.puzzles)
  • Re: .ini .dat or registry question
    ... samples real music and ruins it. ... Prev by Date: ...
    (microsoft.public.vb.winapi)
  • Re: Sudoku
    ... HTH ... Kev ... Prev by Date: ...
    (rec.puzzles)