using System.Linq.Expressions;
public static void Main()
XmlDocument xml = new XmlDocument();
PropertyInfo innerXml = xml
ParameterExpression document = Expression.Parameter(
ParameterExpression content = Expression.Parameter(
MethodCallExpression body = Expression.Call(
Expression<Action<XmlDocument, string>> lambda = Expression.Lambda<Action<XmlDocument, string>>(
new ParameterExpression[]
Action<XmlDocument, string> action = lambda.Compile();
Console.WriteLine(xml.InnerXml);