/// <summary>
        /// Represent an expression as a xml string
        /// </summary>
        private String ToXmlString(XmlExpression expr)
        {
            XmlSerializer xsz = XmlModelSerializerFactory.Current.CreateSerializer(expr.GetType());

            using (StringWriter sw = new StringWriter())
            {
                xsz.Serialize(sw, expr);
                return(sw.ToString());
            }
        }
Beispiel #2
0
        /// <summary>
        /// Represent an expression as a xml string
        /// </summary>
        private String ToXmlString(XmlExpression expr)
        {
            XmlSerializer xsz = new XmlSerializer(expr.GetType());

            using (StringWriter sw = new StringWriter())
            {
                xsz.Serialize(sw, expr);
                return(sw.ToString());
            }
        }