Пример #1
0
        public Container ConvertToStandardContainer()
        {
            Container   metalBox = new MetalBox();
            List <Item> subItems = new List <Item>(Items);

            foreach (Item subItem in subItems)
            {
                metalBox.AddItem(subItem);
            }

            Delete();

            return(metalBox);
        }
Пример #2
0
        public Container ConvertToStandardContainer()
        {
            Container metalBox = new MetalBox();
            ArrayList subItems = new ArrayList(Items);

            foreach (Item subItem in subItems)
            {
                metalBox.AddItem(subItem);
            }

            this.Delete();

            return(metalBox);
        }
Пример #3
0
        public Container ConvertToStandardContainer()
        {
            Container metalBox = new MetalBox();
            ArrayList subItems = new ArrayList( Items );

            foreach ( Item subItem in subItems )
            {
                metalBox.AddItem( subItem );
            }

            this.Delete();

            return metalBox;
        }
Пример #4
0
		public Container ConvertToStandardContainer()
		{
			Container metalBox = new MetalBox();
			List<Item> subItems = new List<Item>( Items );

			foreach ( Item subItem in subItems )
			{
				metalBox.AddItem( subItem );
			}

			Delete();

			return metalBox;
		}