public override bool Equals(object obj) { if (obj == null) { return(false); } Bad6 rhs = (Bad6)obj; // cast return(State == rhs.State); }
public override bool Equals(object obj) { Bad6 rhs = obj as Bad6; if ((object)rhs == null) { return(false); } return(name == rhs.name && address == rhs.address); }
public override bool Equals(object rhsObj) { if (rhsObj == null) { return(false); } Bad6 rhs = rhsObj as Bad6; return(this == rhs); }
public bool Equals(Bad6 rhs) { return this == rhs; }
public bool Equals(Bad6 rhs) { return(this == rhs); }