I just found that Arrays, Lists, Collections all have these Find, FindAll, etc... functions that use the Predicate syntax. I guess I've noticed them a few times but never actually tried to use them. Check this out.
static void Main(string[] args){ // List of Integers int[] intArray = new int[] { 1, 5, 10, 2, 15, 100, 20, 30 }; int[] intFilter;
static void DisplayIntList(int[] intFilter){ foreach (int testInt in intFilter) { Console.WriteLine(testInt); } Console.WriteLine();}