예제 #1
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Good5 rhs = rhsObj as Good5;

                return(m_name == rhs.m_name && m_address == rhs.m_address);
            }
예제 #2
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Good5 rhs = rhsObj as Good5;

                return(this == rhs);
            }
예제 #3
0
            public bool Equals(Good5 rhs)
            {
                if (object.ReferenceEquals(this, rhs))
                {
                    return(true);
                }

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

                return(name == rhs.name && address == rhs.address);
            }
예제 #4
0
            public bool Equals(Good5 rhs)
            {
                if (object.ReferenceEquals(this, rhs))
                    return true;

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

                return name == rhs.name && address == rhs.address;
            }