示例#1
0
文件: GnssTime.cs 项目: yxw027/GNSSer
 /// <summary>
 ///  是否相等。
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool Equals(GnssTime other)
 {
     return(GnssWeek == other.GnssWeek && SecondsOfWeek.Equals(other.SecondsOfWeek));
 }
示例#2
0
文件: GnssTime.cs 项目: yxw027/GNSSer
 /// <summary>
 /// 哈希数
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(GnssWeek.GetHashCode() + SecondsOfWeek.GetHashCode() * 3);
 }