Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (N1 != 0)
            {
                hash ^= N1.GetHashCode();
            }
            if (N2 != 0)
            {
                hash ^= N2.GetHashCode();
            }
            if (Soma != 0)
            {
                hash ^= Soma.GetHashCode();
            }
            if (Subtracao != 0)
            {
                hash ^= Subtracao.GetHashCode();
            }
            if (Multiplicacao != 0)
            {
                hash ^= Multiplicacao.GetHashCode();
            }
            if (Divisao != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Divisao);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }