adding array to list

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Is there a faster way to add an array to a list then looping through
the elements like:


double[] toadd;
list<double> listwant;

for (int i=0;i<toadd.Length;i++){
listwant.Add(toadd);
}

Thanks,
Bob
 
Bob,

I have seen en done an answer in another newsgroup.

Please don't multipost, you can crosspost, than everybody sees that your
question is already answered and spares the time.

Crossposting is sending one message to more newsgroup in one time. However,
try never to multipost, if you do that too often, then you get no responses
anymore.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top