I have
var previous = new BitArray(new bool[]{true});
var current = new BitArray(new bool[]{false});
I want to concatenate them. I have already tried:
var next = new BitArray(previous.Count + current.Count);
var index = 0;
for(;index < previous.Count; index++)
next[index] = previous[index];
var j = 0;
for(;index < next.Count; index++, j++)
next[index] = current[j];
previous = current;
But it doesn't look like the best way to do it.