protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetSwatchImage()) {
Image swatchImage = this.SwatchImage;
xml.Append("<SwatchImage>");
xml.Append(swatchImage.ToXMLFragment());
xml.Append("</SwatchImage>");
}
if (IsSetSmallImage()) {
Image smallImage = this.SmallImage;
xml.Append("<SmallImage>");
xml.Append(smallImage.ToXMLFragment());
xml.Append("</SmallImage>");
}
if (IsSetThumbnailImage()) {
Image thumbnailImage = this.ThumbnailImage;
xml.Append("<ThumbnailImage>");
xml.Append(thumbnailImage.ToXMLFragment());
xml.Append("</ThumbnailImage>");
}
if (IsSetTinyImage()) {
Image tinyImage = this.TinyImage;
xml.Append("<TinyImage>");
xml.Append(tinyImage.ToXMLFragment());
xml.Append("</TinyImage>");
}
if (IsSetMediumImage()) {
Image mediumImage = this.MediumImage;
xml.Append("<MediumImage>");
xml.Append(mediumImage.ToXMLFragment());
xml.Append("</MediumImage>");
}
if (IsSetLargeImage()) {
Image largeImage = this.LargeImage;
xml.Append("<LargeImage>");
xml.Append(largeImage.ToXMLFragment());
xml.Append("</LargeImage>");
}
return xml.ToString();
}