示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 3;
         hash = 37 * hash + IdProduto;
         hash = 37 * hash + (Nome == null ? 0 : Nome.GetHashCode());
         hash = 37 * hash + (NomeCategoria == null ? 0 : NomeCategoria.GetHashCode());
         hash = 37 * hash + Preco.GetHashCode();
         hash = 37 * hash + (Ingredientes == null ? 0 : Ingredientes.GetHashCode());
         hash = 37 * hash + (Alergenios == null ? 0 : Alergenios.GetHashCode());
         return(hash);
     }
 }