We are going to add in the following ToString extension which will give us the correct rich text.
public partial class rich { private System.Xml.XmlNode[] anyField; /// <remarks/> [System.Xml.Serialization.XmlTextAttribute()] [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlNode[] Any { get { return this.anyField; } set { this.anyField = value; } } public override string ToString() { StringBuilder sb = new StringBuilder(); foreach (XmlNode item in this.anyField) { sb.Append(item.OuterXml); } return sb.ToString(); } }Simply add in the "public override string ToString()" method and the rich text will begin to render correctly.
No comments:
Post a Comment