// Override public override string ToString() { return(Nome + " , Preço R$ " + Preco.ToString("F2", CultureInfo.InvariantCulture) + " , " + Qtd.ToString("F2", CultureInfo.InvariantCulture) + " Unidades em Estoque, valor Total: R$ " + TotalEstoque().ToString("F2", CultureInfo.InvariantCulture)); }
public override int GetHashCode() { int hash = 1; if (IdProduto != 0) { hash ^= IdProduto.GetHashCode(); } if (Qtd != 0) { hash ^= Qtd.GetHashCode(); } if (Valor != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Valor); } if (Nome.Length != 0) { hash ^= Nome.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashCode = -1629259719; hashCode = hashCode * -1521134295 + Id.GetHashCode(); hashCode = hashCode * -1521134295 + Qtd.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Obs); return(hashCode); }