public override bool Equals(object obj)
            {
                if (obj == null)
                {
                    return(false);
                }

                Bad6 rhs = (Bad6)obj;                                           // cast

                return(State == rhs.State);
            }
コード例 #2
0
            public override bool Equals(object obj)
            {
                Bad6 rhs = obj as Bad6;

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

                return(name == rhs.name && address == rhs.address);
            }
コード例 #3
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Bad6 rhs = rhsObj as Bad6;

                return(this == rhs);
            }
コード例 #4
0
 public bool Equals(Bad6 rhs)
 {
     return this == rhs;
 }
コード例 #5
0
 public bool Equals(Bad6 rhs)
 {
     return(this == rhs);
 }