using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
public static void Main()
{
var list = new List<int> { 1, 2, 3, 4, 5, 4, 3, 2, 1 };
bool any_result = list.Any(i => i == 3);
Console.WriteLine($"要素に3があるか? = {any_result}");
any_result = list.Any(i => i == 10);
Console.WriteLine($"要素に10があるか? = {any_result}");
}
}