public Pizza(int id, string name, decimal price, Spiciness spiciness) { Id = id; Name = name; Price = price; Spiciness = spiciness; }
public Pizza(int id, string name, decimal price, Spiciness spiciness) { this.Id = id; this.Name = name ?? throw new ArgumentNullException(nameof(name), "A Pizza needs a name"); this.Price = price; this.Spiciness = spiciness; }
public Pizza(int id, string name, decimal price, Spiciness spiciness) { Id = id; Name = name ?? throw new ArgumentNullException("A pizza needs a name"); Price = price; Spiciness = spiciness; }
public Pizza(int id, string name, decimal price, Spiciness spiciness) { this.Id = id; this.Name = name; this.Price = price; this.Spiciness = spiciness; }
#pragma warning restore 1998 #line 29 "C:\Code\Blazor\PizzaPlace070\PizzaPlace070.Client\Pages\PizzaInfo.cshtml" private string SpicinessImage(Spiciness spiciness) => $"images/{spiciness.ToString().ToLower()}.png";
public ChiliConCarne(Spiciness spicyness) { this.spicyness = spicyness; }
// *************************************************************************************************** // Methods // *************************************************************************************************** protected string PizzaPlace_SpicinessImage(Spiciness spiciness) { return($"images/{spiciness.ToString().ToLower()}.png"); }