public PlaceholderIngredient(Product product, IngredientCollection ingredientCollection, Type ingredientType, string name) { this.product = product; this.ingredientCollection = ingredientCollection; this.ingredientType = ingredientType; this.name = name; }
public IngredientCollectionEnumerator(IngredientCollection collection) { this.collection = collection ?? throw new ArgumentNullException(nameof(collection)); Reset(); }