list = list.Where(i => i.Name.Contains(empName)).ToList(); 转载于:https://www.cnblogs.com/gracewolf/p/5274704.html