i have the following string =
"00101010"
and i need the following array/list:
var.ElementAt(0) = "0"
var.ElementAt(1) = "0"
var.ElementAt(2) = "1"
var.ElementAt(3) = "0"
var.ElementAt(4) = "1"
var.ElementAt(5) = "0"
var.ElementAt(6) = "1"
var.ElementAt(7) = "0"
if i try string.split(”) the compiler complains about a empty character literal.
Thanks for any help.
You can use Linq: