I want to be able to do something like this below where I select the field based on a variable name. The below doesn't work and i cant find a solution without doing a big switch statement.
var guidId = new Guid("");
var fieldName= "somefield";
var query =
from c in Financials
where c.GuidId == guidId
select **fieldName**;
Is their a simple way to do this?
Thanks Austin