日期:2014-05-20 浏览次数:20857 次
string[] arr = new string[] { "hello", "abc", "catch", "take", "put", "crash", "world", "cat" }; var ContainsCat = arr.Where(x => x.Contains("cat")); foreach (var item in ContainsCat) { Console.WriteLine(item); }