Had this error "cannot convert lambda expression to type 'string' because it is not a delegate type" in a C# code and found that all I had to do is put in the "using System.Linq" on the code page.