score:3

Accepted answer
// the type argument is inferred from the second lambda expression
string x = repository.getsingle(p => p.slug == slug, p => p.firstname);

Related Query

More Query from same tag