예제 #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
        }
예제 #2
0
 public static XmlDocument ToXmlDocument(this Expression expression)
 {
     return(ExpressionTreeToXmlSerializer.SerializeToXmlDocument(expression));
 }
예제 #3
0
 public static string ToXml(this Expression expression)
 {
     return(ExpressionTreeToXmlSerializer.SerializeToString(expression));
 }