using System; using System.Collections.Generic; namespace test { class Test { public Test() { int[] a1 = new int[] { 1,2,3,4}; int[] a2 = new int[] { 5,6,7}; List l = new List(); l.Add(a1); l.Add(a2); bool found = false; foreach (int[] ia in l) { foreach (int i in ia) if (i == 3) { System.Console.WriteLine("found value, yeah!"); found = true; break; } if (found) break; } } static void Main() { Test t = new Test(); } } }