static void Main(string[] args) { bool[] booleans = new bool[5] { true, false, true, true, false }; Bitarray ba = new Bitarray(booleans); }
static void Main(string[] args) { bool[] booleans = new bool[5] {true, false, true, true, false}; Bitarray ba = new Bitarray(booleans); Console.WriteLine("Aantal: {0}, booleans.Count); Console.WriteLine("Aantal: {0}, booleans.Count"); }