Exemplo n.º 1
0
            public override bool Equals(object obj)
            {
                Good1 rhs = obj as Good1;

                if ((object)rhs == null)
                {
                    return(false);
                }

                return(this == rhs);
            }
Exemplo n.º 2
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Good1 rhs = rhsObj as Good1;

                return(m_name == rhs.m_name && m_address == rhs.m_address);
            }
Exemplo n.º 3
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Good1 rhs = rhsObj as Good1;

                return(this == rhs);
            }
Exemplo n.º 4
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                if (GetType() != rhsObj.GetType())
                {
                    return(false);
                }

                Good1 rhs = (Good1)rhsObj;

                return(x == rhs.x && y == rhs.y);
            }
Exemplo n.º 5
0
 public Good1 Add(Good1 rhs)
 {
     return(new Good1(m_value + rhs.m_value));
 }
Exemplo n.º 6
0
 public static Point ToPointType(Good1 size)
 {
     return new Point(size.m_width, size.m_height);
 }
Exemplo n.º 7
0
 public static Point ToPointType(Good1 size)
 {
     return(new Point(size.m_width, size.m_height));
 }
Exemplo n.º 8
0
 public Good1 Add(Good1 rhs)
 {
     return new Good1(m_value + rhs.m_value);
 }
Exemplo n.º 9
0
 public bool Equals(Good1 rhs)
 {
     return this == rhs;
 }
Exemplo n.º 10
0
            public override bool Equals(object rhsObj)
            {
                Good1 rhs = (Good1)rhsObj;

                return(this == rhs);
            }
Exemplo n.º 11
0
 public bool Equals(Good1 rhs)
 {
     return(this == rhs);
 }