Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How to add dynamic column Linq in where condition using refe
Pankaj Kumar
7y
170
1
Reply
Add dynamic column Linq in where condition using refelection in c#
string filterValue = "ABC", filterColumName = "ClientName";
clients = clients.Where(x => x.GetType().GetProperty(filterColumName).GetValue(x).ToString() == filterValue).ToList();
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to Pass Values from textbox to this query
How to reduce overlapping text in pdf using rotativa in MVC