I have a rowset. I need to learn from these collection lines that satisfy some condition, for example. this line contains A and B or C. These criteria are set by the user so that they are dynamic. In Linq, it should be something like
List<String> items = new List<string> { "sdsdsd", "sdsd", "abc"}; var query = from item in items where item.Contains("a") && item.Contains("b") || item.Contains("c") select item;
I want to make a dynamic where clause so that it can work for any user input. Is it possible to do this in C # without using any external library. Perhaps using Linq or something else built into the .Net framework.
Thanks Gary
gary
source share