protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetSummary()) {
PromotionSummary summary = this.Summary;
xml.Append("<Summary>");
xml.Append(summary.ToXMLFragment());
xml.Append("</Summary>");
}
if (IsSetDetails()) {
PromotionDetails details = this.Details;
xml.Append("<Details>");
xml.Append(details.ToXMLFragment());
xml.Append("</Details>");
}
return xml.ToString();
}