예제 #1
0
        public PascalVocAnnotation Deserialize(string xmlText)
        {
            PascalVocAnnotation obj = new PascalVocAnnotation();

            using (var reader = new StringReader(xmlText))
            {
                obj = (PascalVocAnnotation)base.Deserialize(reader);
            }
            return(obj);
        }
예제 #2
0
        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);
        }