Ejemplo n.º 1
0
        /*
         * Public Methods
         */
        /// <summary>
        /// Searches all items for a specific item.
        /// </summary>
        /// <param name="id">ID of item to search for.</param>
        /// <returns>Item that was found. If none was found, returns null.</returns>
        public Item Find(int id)
        {
            //Search each item
            Item item = InventoryList.Find(i => i.ID == id);

            return(item);
        }