AddRange simply iterates the collection and copies the items.
MrNobody, I guess the question that I have is, when you refer to "quick",
are you talking about the fewest number of code lines, or the fewest number
of program cycles.
There is no way to automatically turn an ICollection into an ArrayList
without copying the items, unless the collection was originally an
ArrayList. But the simplest way might be to use AddRange like Cor mentioned
below.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
Hi,
Did you ever saw this page?
addrange
http://msdn.microsoft.com/library/de...rangetopic.asp
I hope this helps?
Cor