I need to convert all datas in a list with bools to an array with bools. You have any suggestions?
Thank you all
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 19, 2013, 8:58 AM EDT
List
bool[] ba = list.ToArray();
Jignesh TrivediRank #16 · 50.3K reputationPosted Aug 19, 2013, 6:49 PM EDT
hi,
System.Collections.Generic namespace has public T[] ToArray(); method that can be used here.
http://www.dotnetperls.com/convert-list-array
hope this will help you.