Exemplo n.º 1
0
 public override bool Equals(object obj)
 {
     if (obj is Rect16)
     {
         Rect16 rect = (Rect16)obj;
         return(Equals(rect));
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public bool Equals(Rect16 rect)
 {
     return(left == rect.left && top == rect.top && right == rect.right && bottom == rect.bottom);
 }