Exemplo n.º 1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (FechaCreacion != null)
         {
             hashCode = hashCode * 59 + FechaCreacion.GetHashCode();
         }
         if (Descripcion != null)
         {
             hashCode = hashCode * 59 + Descripcion.GetHashCode();
         }
         if (IndFinalizada != null)
         {
             hashCode = hashCode * 59 + IndFinalizada.GetHashCode();
         }
         if (FechaVencimiento != null)
         {
             hashCode = hashCode * 59 + FechaVencimiento.GetHashCode();
         }
         if (Usuario != null)
         {
             hashCode = hashCode * 59 + Usuario.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Descripcion != null ? Descripcion.GetHashCode() : 0);
         return(result);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = (Marca != null ? Marca.GetHashCode() : 0);
         result = (result * 397) ^ (Descripcion != null ? Descripcion.GetHashCode() : 0);
         return(result);
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// Metodo GetHashCode sobreescrito para el Equals.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int num    = 31;
            int result = 1;

            result = num * result + ((NombreArticulo == null) ? 0 : NombreArticulo.GetHashCode());
            result = num * result + ((Descripcion == null) ? 0 : Descripcion.GetHashCode());
            return(result);
        }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = IdMapa.GetHashCode();
         result = (result * 397) ^ IdCalle;
         result = (result * 397) ^ IdEsquina;
         result = (result * 397) ^ IdEntrecalle;
         result = (result * 397) ^ Altura;
         result = (result * 397) ^ Latitud.GetHashCode();
         result = (result * 397) ^ Longitud.GetHashCode();
         result = (result * 397) ^ Calle.GetHashCode();
         result = (result * 397) ^ Partido.GetHashCode();
         result = (result * 397) ^ Provincia.GetHashCode();
         result = (result * 397) ^ Pais.GetHashCode();
         result = (result * 397) ^ Descripcion.GetHashCode();
         return(result);
     }
 }
 public override int GetHashCode()
 {
     return(Id.GetHashCode() & Descripcion.GetHashCode() & EstaEliminado.GetHashCode() & Codigo.GetHashCode() & FechaEstimadaInicio.GetHashCode());
 }
Exemplo n.º 7
0
        public override int GetHashCode()
        {
            var result = (Descripcion != null ? Descripcion.GetHashCode() : 0);

            return(result);
        }
 public override int GetHashCode()
 {
     return(Id.GetHashCode() & Descripcion.GetHashCode() & EstaEliminado.GetHashCode() & RubroId.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(Id.GetHashCode() & Descripcion.GetHashCode() & SalarioMinimoId.GetHashCode() & EstaEliminado.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(Id.GetHashCode() & Descripcion.GetHashCode() & EstaEliminado.GetHashCode() & Codigo.GetHashCode() & TipoMaterial.GetHashCode());
 }