/** * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful. */ public bool equals(SphericalHarmonicAntennaPattern rhs) { bool ivarsEqual = true; if (rhs.GetType() != this.GetType()) { return(false); } if (!(_order == rhs._order)) { ivarsEqual = false; } return(ivarsEqual); }
/** * Compares for reference equality and value equality. */ public bool equals(SphericalHarmonicAntennaPattern rhs) { bool ivarsEqual = true; if(rhs.GetType() != this.GetType()) return false; if( ! (_order == rhs._order)) ivarsEqual = false; return ivarsEqual; }