@manhng

Welcome to my blog!

LINQ Dynamically Select Column From Column Name

December 28, 2017 15:22

var sequel = (from x in m_MainMenus
where x.Type == null && x.ParentId == null
select (string) x.GetType().GetProperty(colName).GetValue(x, null)).FirstOrDefault();

LINQ Dynamically Select Column From Column Name

https://stackoverflow.com/questions/19542569/linq-dynamically-select-column-from-column-name

Categories

Recent posts