public override bool Equals(object obj) { BitList b = obj as BitList; if (b == null) { return(false); } if (Count != b.Count) { return(false); } for (int i = 0; i < bits.Count; ++i) { if (bits[i] != b.bits[i]) { return(false); } } return(true); }
public BitList(BitList bl) { bits = new List <byte>(bl.bits); Count = bl.Count; return; }