Overview
- Contains an array of true/false values.
- Resizable through the Length property.
- Supports bitwise operations.
Examples
Setting Values
BitArray a = new BitArray(8);
a.SetAll(false);
a[2] = true;
Xor
BitArray a = new BitArray(8);
a.SetAll(false);
a[2] = true;
BitArray b = new BitArray(8);
b.SetAll(false);
b[2] = false;
BitArray xor = a.Xor(b);
Console.WriteLine(xor[2]);
You May Also Like

Exam 70-536 Study Notes
My study notes for Microsoft exam 70-536: .NET types, collections, generics, I/O, serialization and more, with C# examples.

Starting Exam 70-536 Study
After a burnout, I'm putting my own project on hold to study for Microsoft exam 70-536.

Design Patterns - Proxy Pattern
The Proxy Pattern, and the last article in the design patterns series, now that I've finished reading Head First Design Patterns.




