Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            unchecked {
                if (nombre != null)
                {
                    hashCode += 1000000007 * nombre.GetHashCode();
                }
                if (tipo != null)
                {
                    hashCode += 1000000009 * tipo.GetHashCode();
                }
                if (valorPorDefecto != null)
                {
                    hashCode += 1000000021 * valorPorDefecto.GetHashCode();
                }
                if (valorFijo != null)
                {
                    hashCode += 1000000033 * valorFijo.GetHashCode();
                }
                hashCode += 1000000087 * uso.GetHashCode();
            }
            return(hashCode);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            unchecked {
                if (tipoBaseRestriccion != null)
                {
                    hashCode += 1000000007 * tipoBaseRestriccion.GetHashCode();
                }
                if (restricciones != null)
                {
                    hashCode += 1000000009 * restricciones.GetHashCode();
                }
                if (elementosEnumerados != null)
                {
                    hashCode += 1000000021 * elementosEnumerados.GetHashCode();
                }
            }
            return(hashCode);
        }