Lambda Expressions in T4 Templates <p>Whilst putting together a T4 template I threw in a simple lambda expression:</p> <pre><code>&lt;#=string.Join(",", updateFields.ConvertAll(field =&gt; field.Name).ToArray())#&gt; </code></pre> <p>This causes the template to fail to generate with the error:</p> <pre><code>Compiling transformation: Invalid expression term '&gt;' </code></pre> <p>On the line with the lambda expression.</p> <p>This has been checked outside of a template and works fine. Does T4 not support working with lambda expressions? If not, are there any other language features that are unsupported in the context of a T4 template?</p> <p>Thanks!</p>