T
Tony Johansson
Hi!
How on earth can the result on xorbits be true when you are doing an xor
between two
bits where each bit is true it should be false ?
public void Main(string[] args)
{
BitArray bits = new BitArray(1);
bits[0] = true;
BitArray morebits = new BitArray(1);
bits[0] = true;
BitArray xorbits = bits.Xor(morebits);
foreach (bool bit in xorbits)
Console.WriteLine(bit);
}
//Tony
How on earth can the result on xorbits be true when you are doing an xor
between two
bits where each bit is true it should be false ?
public void Main(string[] args)
{
BitArray bits = new BitArray(1);
bits[0] = true;
BitArray morebits = new BitArray(1);
bits[0] = true;
BitArray xorbits = bits.Xor(morebits);
foreach (bool bit in xorbits)
Console.WriteLine(bit);
}
//Tony