I have a method which I pass string and a list in to. What I'm trying to achieve is to convert the string into lambda expression property.
private someMethod(string myTypeString, List<Values> typeList)
{
foreach(var type in typeList.Where(x => x."myTypeString" > DateTime.Now))
{
//do my loop
}
}
Is there a way to do that?