Is there any way to to it without copying values?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately the values will need to be copied, but
DoubleCollectionhas a constructor that’ll do it automatically for you:EDIT…
You’ve specified that you’re using Silverlight, which means that there’s no such constructor available. In that case you’ll need to do all the work yourself (not that it actually requires much extra work):