c# - Lambda Expressions in T4 Templates -


Keeping a T4 template together I threw in a simple lambda expression:

  & Lt; # String = .joined (",", updateFields.ConvertAll (field = & gt; field .name) .oir ()) & gt;  

This template fails to generate error with:

  conversion compilation: invalid expression word '& gt;'  

On line with lambda expression.

This is checked out of a template and works fine. Does not T4 support work with Labda's expressions? If not, are there any other language features which are unsupported in the context of a T4 template?

Thank you! If you are using T4 in Visual Studio 2008, make sure that you have C # The compiler is in version 3.5. It uses 2.0 by default.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -