Beispiel #1
0
        public void Add(int productId)
        {
            int value;

            if (!ProductsIdsWithCount.TryGetValue(productId, out value))
            {
                value = 0;
            }

            value++;

            ProductsIdsWithCount[productId] = value;
        }
Beispiel #2
0
 public void Clear()
 {
     ProductsIdsWithCount.Clear();
 }