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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 19, 2013, 12:58 PM
List
bool[] ba = list.ToArray();
Jignesh TrivediPosted Aug 19, 2013, 10:49 PM
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.