Oops, was completely out of tune. You intialized your bit array with a byte value of 255, which gets implicitely converted to an integer. And [this MSDN article](https://msdn.microsoft.com/en-us/library/4ty2t3fx(v=vs.110).aspx) says the 255 bytes of your array are all initialized to **false**. Read More
As ddanbe pointed out, the byte value is being converted to an integer - BitArray(int32).
Effectively what you have written is:
BitArray bitArray = new BitArray(255);
255 bits all set to 0 (false). Read More
A BitArray looks a bit(haha) confusing at first.
Internally real bits are stored, externally you get booleans back.
It is some sort of wrapper class to make working with bitwise operators "simpler".
It will all clear out after reading [this](http://www.dotnetperls.com/bitarray) I hope. Read More
After reading somewhere that the BitArray class actually contains an int array, I decided it might not be what I wanted, as I want to pass a primitive byte around rather than a larger class,
So I rolled my own, which appears to do what I want.
If anyone has … Read More
You made a bell ring. I looked in some old "drawers" on my computer and found this:
private int _bits;
public IntBits(int InitialBitValue)
_bits = InitialBitValue;
public bool this[int index]
return (_bits & (1 << index)) != 0;
set … Read More