public override int GetHashCode()
 {
     unchecked
     {
         var result = Nazev?.GetHashCode() ?? 0;
         result = (result * 397) ^ ICO?.GetHashCode() ?? 0;
         result = (result * 397) ^ Rc?.GetHashCode() ?? 0;
         result = (result * 397) ^ Role?.GetHashCode() ?? 0;
         return(result);
     }
 }
Beispiel #2
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Rc != null)
                {
                    hash = hash * 59 + Rc.GetHashCode();
                }

                if (Img != null)
                {
                    hash = hash * 59 + Img.GetHashCode();
                }

                if (Tv != null)
                {
                    hash = hash * 59 + Tv.GetHashCode();
                }

                if (Con != null)
                {
                    hash = hash * 59 + Con.GetHashCode();
                }

                if (MarketDefinition != null)
                {
                    hash = hash * 59 + MarketDefinition.GetHashCode();
                }

                if (Id != null)
                {
                    hash = hash * 59 + Id.GetHashCode();
                }

                return(hash);
            }
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var result = Id?.GetHashCode() ?? 0;
         result = (result * 397) ^ (IdPuvodce?.GetHashCode() ?? 0);
         result = (result * 397) ^ (IdOsoby?.GetHashCode() ?? 0);
         result = (result * 397) ^ (SpisovaZnacka?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Nazev?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Role?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Typ?.GetHashCode() ?? 0);
         result = (result * 397) ^ (ICO?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Rc?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Mesto?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Okres?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Zeme?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Psc?.GetHashCode() ?? 0);
         result = (result * 397) ^ (DatumNarozeni?.GetHashCode() ?? 0);
         return(result);
     }
 }
Beispiel #4
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Side != null)
                {
                    hash = hash * 59 + Side.GetHashCode();
                }

                if (Sv != null)
                {
                    hash = hash * 59 + Sv.GetHashCode();
                }

                if (Pt != null)
                {
                    hash = hash * 59 + Pt.GetHashCode();
                }

                if (Ot != null)
                {
                    hash = hash * 59 + Ot.GetHashCode();
                }

                if (P != null)
                {
                    hash = hash * 59 + P.GetHashCode();
                }

                if (Sc != null)
                {
                    hash = hash * 59 + Sc.GetHashCode();
                }

                if (Rc != null)
                {
                    hash = hash * 59 + Rc.GetHashCode();
                }

                if (S != null)
                {
                    hash = hash * 59 + S.GetHashCode();
                }

                if (Pd != null)
                {
                    hash = hash * 59 + Pd.GetHashCode();
                }

                if (Rac != null)
                {
                    hash = hash * 59 + Rac.GetHashCode();
                }

                if (Md != null)
                {
                    hash = hash * 59 + Md.GetHashCode();
                }

                if (Sl != null)
                {
                    hash = hash * 59 + Sl.GetHashCode();
                }

                if (Avp != null)
                {
                    hash = hash * 59 + Avp.GetHashCode();
                }

                if (Sm != null)
                {
                    hash = hash * 59 + Sm.GetHashCode();
                }

                if (Id != null)
                {
                    hash = hash * 59 + Id.GetHashCode();
                }

                if (Bsp != null)
                {
                    hash = hash * 59 + Bsp.GetHashCode();
                }

                if (Status != null)
                {
                    hash = hash * 59 + Status.GetHashCode();
                }

                if (Sr != null)
                {
                    hash = hash * 59 + Sr.GetHashCode();
                }

                if (Cd != null)
                {
                    hash = hash * 59 + Cd.GetHashCode();
                }

                return(hash);
            }
        }