public override bool Equals(object rhsObj) { if (rhsObj == null) { return(false); } Good6 rhs = rhsObj as Good6; return(this == rhs); // calls a static method }
public bool Equals(Good6 rhs) { return this == rhs; }
public bool Equals(Good6 rhs) { return(this == rhs); }