コード例 #1
0
        public void Validate()
        {
            FoodItem.ValidateRequired("FoodItem");

            ServingSize.ValidateOptional("ServingSize");
            ServingsConsumed.ValidateOptional("ServingsConsumed");
            Meal.ValidateOptional("Meal");
            When.ValidateOptional("When");

            Calories.ValidateOptional("Calories");
            CaloriesFromFat.ValidateOptional("CaloriesFromFat");
            TotalFat.ValidateOptional("TotalFat");
            SaturatedFat.ValidateOptional("SaturatedFat");
            MonounsaturatedFat.ValidateOptional("MonounsaturatedFat");
        }