public override int GetHashCode()
 {
     unchecked
     {
         return((MovieId.GetHashCode() * 397) ^ Rating);
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MovieId != 0)
            {
                hash ^= MovieId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Genre.Length != 0)
            {
                hash ^= Genre.GetHashCode();
            }
            if (Duration != 0)
            {
                hash ^= Duration.GetHashCode();
            }
            if (Classification != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Classification);
            }
            if (NumberOfAvailableTickets != 0)
            {
                hash ^= NumberOfAvailableTickets.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return((MovieId.GetHashCode() * 397) ^ (Director != null ? Director.GetHashCode() : 0));
     }
 }
Exemple #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((MovieId.GetHashCode() * 397) ^ (Title != null ? Title.GetHashCode() : 0));
     }
 }
Exemple #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MovieId != 0)
            {
                hash ^= MovieId.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (Price != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MovieId.Length != 0)
            {
                hash ^= MovieId.GetHashCode();
            }
            if (MovieName.Length != 0)
            {
                hash ^= MovieName.GetHashCode();
            }
            if (MoviePrice.Length != 0)
            {
                hash ^= MoviePrice.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        //----------------------------------------------------------------//

        public override int GetHashCode()
        {
            return(MovieId.GetHashCode() ^ GenreId.GetHashCode());
        }
Exemple #8
0
 public override int GetHashCode()
 {
     return((Id.GetHashCode() + UserId.GetHashCode() + MovieId.GetHashCode()) / 3);
 }
Exemple #9
0
        //----------------------------------------------------------------//

        public override int GetHashCode()
        {
            return(MovieId.GetHashCode() ^ CompanyId.GetHashCode());
        }
        //----------------------------------------------------------------//

        public override int GetHashCode()
        {
            return(CountryId.GetHashCode() ^ MovieId.GetHashCode());
        }