Example #1
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         // Suitable nullity checks etc, of course :)
         hash = hash * 23 + RA.GetHashCode();
         hash = hash * 23 + Dec.GetHashCode();
         return(hash);
     }
 }
        public override int GetHashCode()
        {
            var hashCode = 1398195996;

            hashCode = hashCode * -1521134295 + ra.GetHashCode();
            hashCode = hashCode * -1521134295 + RA.GetHashCode();
            hashCode = hashCode * -1521134295 + cod.GetHashCode();
            hashCode = hashCode * -1521134295 + Cod.GetHashCode();
            hashCode = hashCode * -1521134295 + nota.GetHashCode();
            hashCode = hashCode * -1521134295 + Nota.GetHashCode();
            hashCode = hashCode * -1521134295 + frequencia.GetHashCode();
            hashCode = hashCode * -1521134295 + Frequencia.GetHashCode();

            if (hashCode < 0)
            {
                hashCode = -hashCode;
            }

            return(hashCode);
        }
 public override int GetHashCode()
 {
     return(RA.GetHashCode() ^ Dec.GetHashCode());
 }