internal static Predicate <StackedItems> FindWithType(Item.IType type) { return(delegate(StackedItems sitem) { return sitem.item.type == type; }); }