public override bool Equals(object obj)
{
if (obj == null || GetType() != obj.GetType())
{
return false;
}
UncompressedBitArray compare = (UncompressedBitArray)obj;
bool equalLength = (this.Length == compare.Length);
if (equalLength)
{
for (int i = 0; i < this.Length; i++)
{
if (this.array.Get(i) != compare.array.Get(i))
{
equalLength = false;
}
}
}
return equalLength;
}