public Sugar FindFirstSugarCandy() { return((Sugar)Sweets.Find(x => x is Sugar)); }
public Chocolate FindFirstChocolateCandy() { return((Chocolate)Sweets.Find(x => x is Chocolate)); }
public Sweet FindFirstBySugarPercentageRange(double minimumPercentage, double maximumPercentage) { return(Sweets.Find(x => x.SugarPercentage >= minimumPercentage && x.SugarPercentage <= maximumPercentage)); }