protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetEligibilityRequirementType()) {
xml.Append("<EligibilityRequirementType>");
xml.Append(EscapeXML(this.EligibilityRequirementType));
xml.Append("</EligibilityRequirementType>");
}
if (IsSetQuantity()) {
xml.Append("<Quantity>");
xml.Append(this.Quantity);
xml.Append("</Quantity>");
}
if (IsSetCurrencyAmount()) {
Price currencyAmount = this.CurrencyAmount;
xml.Append("<CurrencyAmount>");
xml.Append(currencyAmount.ToXMLFragment());
xml.Append("</CurrencyAmount>");
}
return xml.ToString();
}