using System.Collections.Generic;
public static void Main()
var boolTestList1 = new List<bool> { true, true, true };
var boolTestList2 = new List<bool> { false, false, true };
var boolTestList3 = new List<bool> { false, true, true };
var boolTestList4 = new List<bool> { false, false, false };
Console.WriteLine("Using (e => e)");
Console.WriteLine($"All true?: {boolTestList1.All(e => e)}");
Console.WriteLine($"All true?: {boolTestList2.All(e => e)}");
Console.WriteLine($"All true?: {boolTestList3.All(e => e)}");
Console.WriteLine($"All true?: {boolTestList4.All(e => e)}\n");
Console.WriteLine("Using (e => e = true)");
Console.WriteLine($"All true?: {boolTestList1.All(e => e == true)}");
Console.WriteLine($"All true?: {boolTestList2.All(e => e == true)}");
Console.WriteLine($"All true?: {boolTestList3.All(e => e == true)}");
Console.WriteLine($"All true?: {boolTestList4.All(e => e == true)}");