public void Add(StackOfItems _stackOfItems) { if (!Equals(_stackOfItems)) { throw new ApplicationException("не одинаковые"); } Count += _stackOfItems.Count; _stackOfItems.Count = 0; }
public void Add(StackOfItems _stackOfItems) { if (!Equals(_stackOfItems)) { throw new ApplicationException("не одинаковые"); } Count += _stackOfItems.Count; _stackOfItems.Count = 0; }