I have this:
IEnumerable<dynamic> operations;
foreach(var row in operations)
{
// this works, myElementName is a db field
var tmp = row.myElementName;
// this is what I wish:
string myField ="myElementName";
var tmp_error = row.getProperty(myField);
}
Is it possible? I've tried with reflection but it did not work..
not work 'cause getProperty doesn't exists and using reflection retrieves null values
Thanks!