示例#1
0
 public virtual bool Init(int?quantity, IngredientDetails details)
 {
     this.Quantity = quantity;
     if (details != null)
     {
         this.Details = details;
     }
     else
     {
         this.Details = new IngredientDetails();
     }
     return(true);
 }
示例#2
0
 public Ingredient(int?quantity, IngredientDetails details)
 {
     Init(quantity, details);
 }