Esempio n. 1
0
 /// <summary>
 /// 添加多个商品到购物车中
 /// </summary>
 /// <param name="items">商品信息</param>
 public void AddItems(List <ShoppingCartItem> items)
 {
     lock (_sync)
     {
         CartItems.AddRange(items);
     }
 }