public Model(RecipeNode[] recipes, PantryItem[] pantry, double score) { this.recipeids = recipes.Select(r => r.RecipeId).ToArray(); this.pantry = pantry; this.score = score; }
public Model(RecipeNode[] recipes, PantryItem[] pantry, double score) { this._recipeids = recipes.Select(r => { return r.RecipeId; }).ToArray(); this._pantry = pantry; this._score = score; }