static void Main(string[] args) { BitArray64 myArr = new BitArray64(2, 3, 4, 5); BitArray64 myOther = new BitArray64(2, 3, 4, 5); Console.WriteLine(myOther != myArr); }
public override bool Equals(object obj) { BitArray64 other = (BitArray64)obj; if (this.Count == other.Count) { for (int i = 0; i < this.Count; i++) { if (this[i] != other[i]) { return(false); } } } else { return(false); } return(true); }