public PascalVocAnnotation Deserialize(string xmlText) { PascalVocAnnotation obj = new PascalVocAnnotation(); using (var reader = new StringReader(xmlText)) { obj = (PascalVocAnnotation)base.Deserialize(reader); } return(obj); }
public string Serialize(PascalVocAnnotation pascalVocAnnotation) { string xml = ""; using (StringWriter sw = new StringWriter()) using (XmlWriter writer = XmlWriter.Create(sw, _settings)) { this.Serialize(writer, pascalVocAnnotation, _ns); xml = sw.ToString(); } return(xml); }