I need to configure the condition in config and same thing will be used as condition for lambda expression Where clause. Below is the code i tried but all the list items are getting set with this value.
Test2 tt = new Test2();
tt.s2 = "TEST1";
tt.s3 = "TEST2";
tt.s4 = "TEST3";
Test2 tt1 = new Test2();
tt1.s2 = "TEST11";
tt1.s3 = "TEST21";
tt1.s4 = "TEST31";
Test2 tt2 = new Test2();
tt2.s2 = "TEST12";
tt2.s3 = "TEST22";
tt2.s4 = "TEST32";
List<Test2> test = new List<Test2>();
test.Add(tt);
test.Add(tt1);
test.Add(tt2);
var cond = "item => item.s2 == TEST1";
var test2List = test.Select(item => cond);
So, can anyone suggest how can I achieve this dynamic concept?