using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main()
{
List<bool> booleanList = new List<bool> { true, true, true, true, true };
bool allTrue = booleanList.All(item => item == true);
if (allTrue)
{
Console.WriteLine("리스트 내의 모든 값이 참입니다.");
// 여기에서 원하는 작업을 수행할 수 있습니다.
}
else
{
Console.WriteLine("리스트 내에 하나 이상의 값이 거짓입니다.");
}
}
}C#