I want to "save" my output from my foreach loop into a boolean array. What would be the easiest way to tackle that?
foreach(char est in resultss)
{
int test = est - '0';
tru = Convert.ToBoolean(test); // A Bool[] instead of Bool
// Console.WriteLine(tru);
}
I'm working on a binary clock and imp trying to convert a number like 22 into binary (done that) and than into a bool array.
var theArray = resultss.Select(x => Convert.ToBoolean(x - '0')).ToArray();