Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- namespace cap07.colecciones
- {
- class EjemploBitArray
- {
- public static void Main()
- {
- var bits = new BitArray(2);
- // bits[0] == false
- // bits[1] == false
- bits[1] = true;
- // bits[0] == false
- // bits[1] == true
- bits.And(bits);
- // bits[0] == false
- // bits[1] == true
- Console.WriteLine(bits[0]);
- Console.WriteLine(bits[1]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement