myFieldname
string myFieldname = "theName"; var q = (from d in data select new { d.Id, myFieldname = d.Amount });
theName
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)