public static string GetRecipeableItemType(this RecipeableItem item) { if (item != null) { if (item is PurchaseItem) { return("I"); } if (item is ProductionItem) { return("P"); } } return(null); }
public RecipeItem(decimal quantity, RecipeableItem recipeableItem) { Quantity = quantity; RecipeableItem = recipeableItem; }