Guest User

Untitled

a guest
Jan 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. using NUnit.Framework;
  7.  
  8. namespace SwinTrek.Model
  9. {
  10.        
  11.  
  12.         class Inventory()
  13.         {
  14.            private List<string> _items = new List<string>();
  15.            public Item Fetch(string name)
  16.             {
  17.                
  18.                 foreach (Item i in _items)
  19.                 {
  20.                 if(i.AreYou(name)){
  21.                     return i;
  22.                     }
  23.                 }
  24.                 return null;
  25.             }
  26.         }
  27.         }
  28. }
Add Comment
Please, Sign In to add comment