Expression injection allows create complex CodeDom expressions in simple way like String.Format simplifies string construction.
   CodeExpression exp = CodeDom.GetExpression(() => 1);

   CodeExpression exp2 = CodeDom.GetExpression((int g) => CodeDom.InjectExp<int>(0) + g, exp);

Last edited Sep 20, 2009 at 12:30 PM by AlexShirshov, version 2

Comments

No comments yet.