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); }
public override bool Equals(object rhsObj) { if (rhsObj == null) { return(false); } Good5 rhs = rhsObj as Good5; return(this == rhs); }
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); }
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; }