Exemplo n.º 1
0
        public static XDocument ToXDocument(this Expression expression)
        {
#if SILVERLIGHT
            throw new PlatformNotSupportedException("This method is not supported on non-desktop platforms");
#else
            return(ExpressionTreeToXmlSerializer.SerializeToXDocument(expression));
#endif
        }
Exemplo n.º 2
0
 public static XmlDocument ToXmlDocument(this Expression expression)
 {
     return(ExpressionTreeToXmlSerializer.SerializeToXmlDocument(expression));
 }
Exemplo n.º 3
0
 public static string ToXml(this Expression expression)
 {
     return(ExpressionTreeToXmlSerializer.SerializeToString(expression));
 }