Whilst putting together a T4 template I threw in a simple lambda expression:
<#=string.Join(",", updateFields.ConvertAll(field => field.Name).ToArray())#>
This causes the template to fail to generate with the error:
Compiling transformation: Invalid expression term '>'
On the line with the lambda expression.
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?
Thanks!