using System;
using System.Collections.Generic;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
List<int> list = new List<int>();
for (int i = 0; i < 20; i++)
list.Add(i);
if (list.Exists(ExistsMatch))
Console.WriteLine("找到匹配项");
else
Console.WriteLine("未找到匹配项");
Console.ReadKey();
}
static bool ExistsMatch(int p)
{
return p == 19;
}
}
}