Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using NUnit.Framework;
- namespace SwinTrek.Model
- {
- class Inventory()
- {
- private List<string> _items = new List<string>();
- public Item Fetch(string name)
- {
- foreach (Item i in _items)
- {
- if(i.AreYou(name)){
- return i;
- }
- }
- return null;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment