public override bool Equals(object obj) { if (!(obj is Border)) return false; Border other = (Border)obj; return other.Left == Left && other.Right == Right && other.Top == Top && other.Bottom == Bottom; }