Beispiel #1
0
 /// <summary>
 ///  是否相等。
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool Equals(GnssTime other)
 {
     return(GnssWeek == other.GnssWeek && SecondsOfWeek.Equals(other.SecondsOfWeek));
 }
Beispiel #2
0
 /// <summary>
 /// 哈希数
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(GnssWeek.GetHashCode() + SecondsOfWeek.GetHashCode() * 3);
 }