/** * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful. */ public bool equals(AntennaLocation rhs) { bool ivarsEqual = true; if (rhs.GetType() != this.GetType()) { return(false); } if (!(_antennaLocation.Equals(rhs._antennaLocation))) { ivarsEqual = false; } if (!(_relativeAntennaLocation.Equals(rhs._relativeAntennaLocation))) { ivarsEqual = false; } return(ivarsEqual); }
/** * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful. */ public bool equals(AntennaLocation rhs) { bool ivarsEqual = true; if(rhs.GetType() != this.GetType()) return false; if( ! (_antennaLocation.Equals( rhs._antennaLocation) )) ivarsEqual = false; if( ! (_relativeAntennaLocation.Equals( rhs._relativeAntennaLocation) )) ivarsEqual = false; return ivarsEqual; }