Action<bool> some = p => p =true; Boolean[] test = new Boolean[100]; Array.ForEach(test, some); for(int i = 0; i< test.Length; i++) if(test[i]) Console.WriteLine(i);