Exemplo n.º 1
0
        private string GenerateXmlFormState(ContentTypeForm form)
        {
            var          xmlSerializer = new XmlSerializer(form.GetType());
            StringWriter sww           = new StringWriter();
            XmlWriter    writer        = XmlWriter.Create(sww);

            xmlSerializer.Serialize(writer, form);
            var state = sww.ToString();

            return(state);
        }
Exemplo n.º 2
0
 private string GenerateXmlFormState(ContentTypeForm form)
 {
     var xmlSerializer = new XmlSerializer(form.GetType());
     StringWriter sww = new StringWriter();
     XmlWriter writer = XmlWriter.Create(sww);
     xmlSerializer.Serialize(writer, form);
     var state = sww.ToString();
     return state;
 }