/// <summary> /// Creates an XmlCDataSection containing the specified data. /// </summary> /// <param name="data">The content of the new XmlCDataSection.</param> /// <returns>The new XmlCDataSection.</returns> public override XmlCDataSection CreateCDataSection(string data) { LineInfoCData cd = new LineInfoCData(data, this); IXmlLineInfo lineInfo = this.reader as IXmlLineInfo; if (lineInfo != null && lineInfo.HasLineInfo()) { cd.SetLineInfo(lineInfo.LineNumber, lineInfo.LinePosition); } return cd; }
/// <summary> /// Creates an XmlCDataSection containing the specified data. /// </summary> /// <param name="data">The content of the new XmlCDataSection.</param> /// <returns>The new XmlCDataSection.</returns> public override XmlCDataSection CreateCDataSection(string data) { LineInfoCData cd = new LineInfoCData(data, this); IXmlLineInfo lineInfo = this.reader as IXmlLineInfo; if (lineInfo != null && lineInfo.HasLineInfo()) { cd.SetLineInfo(lineInfo.LineNumber, lineInfo.LinePosition); } return(cd); }