I have List<Employee> listEmployees
I want to select some dynamic columns which are not known at compile time, like:
var result = from l listEmployees
select ""
I tried listEmployees.select("Name");
But it throws an error saying:
'System.Linq.Enumerable.Select(System.Collections.Generic.IEnumerable, System.Func)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
How can I select only the columns which are determined at runtime?