Hi all,
i have a table like below
| FieldName | FieldValue |
| Id | 1 |
| Name | John |
| Id | 2 |
| Name | Andrew |
i have a static value name called "John"
need to filter name as john dynamically in linq c# ,how can i achieve this
| FieldName | FieldValue |
| Id | 1 |
| Name | John |
| Id | 2 |
| Name | Andrew |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suraj DubeyRank #2,182 · 647 reputationPosted Mar 25, 2021, 2:29 AM EDT
var filter = testTable.AsEnumerable().Where(x => x.Fieldstring>("Name") == "John");