public boolean equals(Object obj) {if (obj instanceof Rect) {Rect rhs = (Rect) obj;if (isValid() != rhs.isValid()) {return false;}if (!isValid() && !rhs.isValid()) {return true;}return this.x == rhs.x && this.y == rhs.y && this.w == rhs.w && this.h == rhs.h;}return false;}
public override bool Equals(object obj){android.graphics.Rect r = (android.graphics.Rect)obj;if (r != null){return left == r.left && top == r.top && right == r.right && bottom == r.bottom;}return false;}