I have a List which I want to convert to a byte[]. How do i do this? list.toArray() creates a bool[].
List
byte[]
list.toArray()
bool[]
Have a look at the BitConverter class. Depending on the exact nature of your requirement, it may solve your problem quite neatly.