I have a class
public class Person
{
public int PersonId { get; set; }
public string Name { get; set; }
}
And I have a lambda expression of the Person type
Expression<Func<TModel, TProperty>> expression
Who contains this value
{model => model.Name}
How can I evaluate that lambda expression against an instance of Person, to extract the Name value attribute?