Is this possible to do sth as following:
public class Months
{
public double Jan {get;set;}
public double Feb {get;set;}
public double Mar {get;set;}
}
and then
List<Months> myList = new List<Months>();
string monthName = "Jan";
and is it possbile something like this?
myList.where(x=>x.PropertyName.Equals(monthName))
Note sure what is en expected value, but this would give you the value of the matching property.