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