Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public BitList(BitList bl)
 {
     bits  = new List <byte>(bl.bits);
     Count = bl.Count;
     return;
 }