///<summary>Sets the value of the <c><DietaryPreferenceList></c> element.</summary> /// <param name="DietaryPreference">A DietaryPreference</param> ///<remarks> /// <para>This form of <c>setDietaryPreferenceList</c> is provided as a convenience method /// that is functionally equivalent to the <c>DietaryPreferenceList</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetDietaryPreferenceList(DietaryPreference DietaryPreference) { RemoveChild(CateringDTD.PERSONDIETARYPREFERENCE_DIETARYPREFERENCELIST); AddChild(CateringDTD.PERSONDIETARYPREFERENCE_DIETARYPREFERENCELIST, new DietaryPreferenceList(DietaryPreference)); }
///<summary>Sets the value of the <c><DietaryPreferenceList></c> element.</summary> /// <param name="DietaryPreference">A DietaryPreference</param> ///<remarks> /// <para>This form of <c>setDietaryPreferenceList</c> is provided as a convenience method /// that is functionally equivalent to the <c>DietaryPreferenceList</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetDietaryPreferenceList( DietaryPreference DietaryPreference ) { RemoveChild( CateringDTD.PERSONDIETARYPREFERENCE_DIETARYPREFERENCELIST); AddChild( CateringDTD.PERSONDIETARYPREFERENCE_DIETARYPREFERENCELIST, new DietaryPreferenceList( DietaryPreference ) ); }