一、C# List根据值找到索引值方法
List<int> test = new List<int>();
int index = test .FindIndex(item=>item.Equals(888));
二、查询List类中是否有指定的变量
int count = (from p in listProduct where p.ProductName == form.name select p).Count();