Example #1
0
 /// <summary>
 /// 哈希数
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(GnssWeek.GetHashCode() + SecondsOfWeek.GetHashCode() * 3);
 }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ReceiverId != 0)
            {
                hash ^= ReceiverId.GetHashCode();
            }
            if (TimeType != 0)
            {
                hash ^= TimeType.GetHashCode();
            }
            if (GnssWeek != 0)
            {
                hash ^= GnssWeek.GetHashCode();
            }
            if (GnssSecondS != 0D)
            {
                hash ^= GnssSecondS.GetHashCode();
            }
            if (PntType != 0)
            {
                hash ^= PntType.GetHashCode();
            }
            if (PosXM != 0D)
            {
                hash ^= PosXM.GetHashCode();
            }
            if (PosYM != 0D)
            {
                hash ^= PosYM.GetHashCode();
            }
            if (PosZM != 0D)
            {
                hash ^= PosZM.GetHashCode();
            }
            if (StdPosXM != 0D)
            {
                hash ^= StdPosXM.GetHashCode();
            }
            if (StdPosYM != 0D)
            {
                hash ^= StdPosYM.GetHashCode();
            }
            if (StdPosZM != 0D)
            {
                hash ^= StdPosZM.GetHashCode();
            }
            if (VelXM != 0D)
            {
                hash ^= VelXM.GetHashCode();
            }
            if (VelYM != 0D)
            {
                hash ^= VelYM.GetHashCode();
            }
            if (VelZM != 0D)
            {
                hash ^= VelZM.GetHashCode();
            }
            if (StdVelXM != 0D)
            {
                hash ^= StdVelXM.GetHashCode();
            }
            if (StdVelYM != 0D)
            {
                hash ^= StdVelYM.GetHashCode();
            }
            if (StdVelZM != 0D)
            {
                hash ^= StdVelZM.GetHashCode();
            }
            if (SovledSatNum != 0)
            {
                hash ^= SovledSatNum.GetHashCode();
            }
            hash ^= satDirCosine_.GetHashCode();
            if (Pdop != 0D)
            {
                hash ^= Pdop.GetHashCode();
            }
            if (Hdop != 0D)
            {
                hash ^= Hdop.GetHashCode();
            }
            if (Vdop != 0D)
            {
                hash ^= Vdop.GetHashCode();
            }
            return(hash);
        }