Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((MovieId.GetHashCode() * 397) ^ Rating);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((MovieId.GetHashCode() * 397) ^ (Director != null ? Director.GetHashCode() : 0));
     }
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((MovieId.GetHashCode() * 397) ^ (Title != null ? Title.GetHashCode() : 0));
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 7
0
        //----------------------------------------------------------------//

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

        public override int GetHashCode()
        {
            return(MovieId.GetHashCode() ^ CompanyId.GetHashCode());
        }
Exemplo n.º 10
0
        //----------------------------------------------------------------//

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