System.Collections.Generic.List<string>' does not contain a definition for 'First'
I would also like to be able to use a lambda expression in there:
.Compile<List<string>>("Hello @(Model.First(x => x == \"World\"))");
but that results in
TemplateCompilationException: An errors was occured on template compilation:
c:\Users\harrym\AppData\Local\Temp\e166e141b2b44323ae03d4e437e53805\ixmiyqap.0.cs(27,21) : error CS1977: Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type
Template source code:
Hello @(Model.First(x => x == "World"))!
results in
I would also like to be able to use a lambda expression in there:
but that results in
Any ideas how to make this work?