示例#1
0
 public bool Equals(Obj16Tile other)
 {
     return
         (TopLeft.Equals(other.TopLeft) &&
          TopRight.Equals(other.TopRight) &&
          BottomLeft.Equals(other.BottomLeft) &&
          BottomRight.Equals(other.BottomRight));
 }
示例#2
0
 public bool Equals(FourCorners <TValue> other)
 {
     if (this == other)
     {
         return(true);
     }
     if (other == null)
     {
         return(false);
     }
     return(BottomLeft.Equals(other.BottomLeft) && BottomRight.Equals(other.BottomRight) &&
            TopLeft.Equals(other.TopLeft) && TopRight.Equals(other.TopRight));
 }
示例#3
0
        public bool Equals(Square other)
        {
            //Check whether the compared object is null.
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            //Check whether the compared object references the same data.
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            //Check whether the products' properties are equal.
            return(BottomLeft.Equals(other.BottomLeft) && TopRight.Equals(other.TopRight));
        }
 public bool Equals(GridSegment other)
 {
     return(TopLeft.Equals(other.TopLeft) && TopRight.Equals(other.TopRight) && BottomLeft.Equals(other.BottomLeft) && BottomRight.Equals(other.BottomRight));
 }
示例#5
0
 public bool Equals(CornerRadius other)
 {
     return(TopLeft.Equals(other.TopLeft) && TopRight.Equals(other.TopRight) && BottomLeft.Equals(other.BottomLeft) && BottomRight.Equals(other.BottomRight));
 }