Extract information from a Func<bool, T> or alike lambda
- by Syska
I''m trying to build a generic cache layer. ICacheRepository
Say I have the following:
public class Person
{
public int PersonId { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public DateTime Added { get; set; }
}
And I have something like this:
list.Where(x => x.Firstname ==…