public void Add(int productId) { int value; if (!ProductsIdsWithCount.TryGetValue(productId, out value)) { value = 0; } value++; ProductsIdsWithCount[productId] = value; }
public void Clear() { ProductsIdsWithCount.Clear(); }
public void Add(int productId) { int value; if (!ProductsIdsWithCount.TryGetValue(productId, out value)) { value = 0; } value++; ProductsIdsWithCount[productId] = value; }
public void Clear() { ProductsIdsWithCount.Clear(); }