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