예제 #1
0
            public object Clone()
            {
                Bad7 result = new Bad7();

                result.name = name;                                     // missing address

                return(result);
            }
예제 #2
0
            public override bool Equals(object obj)
            {
                Bad7 rhs = obj as Bad7;

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

                return(this == rhs);
            }
예제 #3
0
            // Equals uses name and foo, == uses name and address.
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Bad7 rhs = rhsObj as Bad7;

                return(name == rhs.Name && foo == rhs.foo);
            }
예제 #4
0
 public bool Equals(Bad7 rhs)
 {
     return this == rhs;
 }
예제 #5
0
 public bool Equals(Bad7 rhs)
 {
     return(this == rhs);
 }