コード例 #1
0
ファイル: GnssStatus.cs プロジェクト: zakirIndia/simulator
        public override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (SolutionCompleted != false)
            {
                hash ^= SolutionCompleted.GetHashCode();
            }
            if (SolutionStatus != 0)
            {
                hash ^= SolutionStatus.GetHashCode();
            }
            if (PositionType != 0)
            {
                hash ^= PositionType.GetHashCode();
            }
            if (NumSats != 0)
            {
                hash ^= NumSats.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
ファイル: Heading.cs プロジェクト: zakirIndia/simulator
        public override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (MeasurementTime != 0D)
            {
                hash ^= MeasurementTime.GetHashCode();
            }
            if (SolutionStatus != 0)
            {
                hash ^= SolutionStatus.GetHashCode();
            }
            if (PositionType != 0)
            {
                hash ^= PositionType.GetHashCode();
            }
            if (BaselineLength != 0F)
            {
                hash ^= BaselineLength.GetHashCode();
            }
            if (Heading_ != 0F)
            {
                hash ^= Heading_.GetHashCode();
            }
            if (Pitch != 0F)
            {
                hash ^= Pitch.GetHashCode();
            }
            if (Reserved != 0F)
            {
                hash ^= Reserved.GetHashCode();
            }
            if (HeadingStdDev != 0F)
            {
                hash ^= HeadingStdDev.GetHashCode();
            }
            if (PitchStdDev != 0F)
            {
                hash ^= PitchStdDev.GetHashCode();
            }
            if (StationId.Length != 0)
            {
                hash ^= StationId.GetHashCode();
            }
            if (SatelliteTrackedNumber != 0)
            {
                hash ^= SatelliteTrackedNumber.GetHashCode();
            }
            if (SatelliteSoulutionNumber != 0)
            {
                hash ^= SatelliteSoulutionNumber.GetHashCode();
            }
            if (SatelliteNumberObs != 0)
            {
                hash ^= SatelliteNumberObs.GetHashCode();
            }
            if (SatelliteNumberMulti != 0)
            {
                hash ^= SatelliteNumberMulti.GetHashCode();
            }
            if (SolutionSource != 0)
            {
                hash ^= SolutionSource.GetHashCode();
            }
            if (ExtendedSolutionStatus != 0)
            {
                hash ^= ExtendedSolutionStatus.GetHashCode();
            }
            if (GalileoBeidouSigMask != 0)
            {
                hash ^= GalileoBeidouSigMask.GetHashCode();
            }
            if (GpsGlonassSigMask != 0)
            {
                hash ^= GpsGlonassSigMask.GetHashCode();
            }
            return(hash);
        }