/** * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful. */ public bool equals(SeesPdu rhs) { bool ivarsEqual = true; if (rhs.GetType() != this.GetType()) { return(false); } if (!(_orginatingEntityID.Equals(rhs._orginatingEntityID))) { ivarsEqual = false; } if (!(_infraredSignatureRepresentationIndex == rhs._infraredSignatureRepresentationIndex)) { ivarsEqual = false; } if (!(_acousticSignatureRepresentationIndex == rhs._acousticSignatureRepresentationIndex)) { ivarsEqual = false; } if (!(_radarCrossSectionSignatureRepresentationIndex == rhs._radarCrossSectionSignatureRepresentationIndex)) { ivarsEqual = false; } if (!(_numberOfPropulsionSystems == rhs._numberOfPropulsionSystems)) { ivarsEqual = false; } if (!(_numberOfVectoringNozzleSystems == rhs._numberOfVectoringNozzleSystems)) { ivarsEqual = false; } for (int idx = 0; idx < _propulsionSystemData.Count; idx++) { PropulsionSystemData x = (PropulsionSystemData)_propulsionSystemData[idx]; if (!(_propulsionSystemData[idx].Equals(rhs._propulsionSystemData[idx]))) { ivarsEqual = false; } } for (int idx = 0; idx < _vectoringSystemData.Count; idx++) { VectoringNozzleSystemData x = (VectoringNozzleSystemData)_vectoringSystemData[idx]; if (!(_vectoringSystemData[idx].Equals(rhs._vectoringSystemData[idx]))) { 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(SeesPdu rhs) { bool ivarsEqual = true; if(rhs.GetType() != this.GetType()) return false; if( ! (_orginatingEntityID.Equals( rhs._orginatingEntityID) )) ivarsEqual = false; if( ! (_infraredSignatureRepresentationIndex == rhs._infraredSignatureRepresentationIndex)) ivarsEqual = false; if( ! (_acousticSignatureRepresentationIndex == rhs._acousticSignatureRepresentationIndex)) ivarsEqual = false; if( ! (_radarCrossSectionSignatureRepresentationIndex == rhs._radarCrossSectionSignatureRepresentationIndex)) ivarsEqual = false; if( ! (_numberOfPropulsionSystems == rhs._numberOfPropulsionSystems)) ivarsEqual = false; if( ! (_numberOfVectoringNozzleSystems == rhs._numberOfVectoringNozzleSystems)) ivarsEqual = false; for(int idx = 0; idx < _propulsionSystemData.Count; idx++) { PropulsionSystemData x = (PropulsionSystemData)_propulsionSystemData[idx]; if( ! ( _propulsionSystemData[idx].Equals(rhs._propulsionSystemData[idx]))) ivarsEqual = false; } for(int idx = 0; idx < _vectoringSystemData.Count; idx++) { VectoringNozzleSystemData x = (VectoringNozzleSystemData)_vectoringSystemData[idx]; if( ! ( _vectoringSystemData[idx].Equals(rhs._vectoringSystemData[idx]))) ivarsEqual = false; } return ivarsEqual; }