Changeset 1570 for trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/String2XmlFormatter.cs
- Timestamp:
- 04/16/09 16:10:39 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/String2XmlFormatter.cs
r1566 r1570 1 1 using System; 2 using System.Text;3 2 using HeuristicLab.Persistence.Core; 4 3 using HeuristicLab.Persistence.Interfaces; 5 using System.Xml; 4 using System.Text; 5 6 6 7 7 namespace HeuristicLab.Persistence.Default.Xml.Primitive { … … 10 10 public class String2XmlFormatter : FormatterBase<string, XmlString> { 11 11 12 public override XmlString Format(string s) { 12 public override XmlString Format(string s) { 13 13 StringBuilder sb = new StringBuilder(); 14 14 sb.Append("<![CDATA["); … … 20 20 private static readonly string[] separators = new string[] { "<![CDATA[", "]]>" }; 21 21 22 public override string Parse(XmlString x) { 22 public override string Parse(XmlString x) { 23 23 StringBuilder sb = new StringBuilder(); 24 24 foreach (string s in x.Data.Split(separators,
Note: See TracChangeset
for help on using the changeset viewer.