I made my own In extension method as shown below:
public static class ExtensionMethods { public static bool In(this string str, IEnumerable<String> list) { foreach (var s in list) { if (s.Equals(str)) return true; } return false; } }
And now I like to use it with my LINQ query. What can I do and how to use it?
source share