以下三种写法都可以获取以a打头的字符串
string[] arr = {"abc", "ass", "cc", "ef", "tta", "awee"};
//写法一
//var selected = arr.Where((s) => { return s.StartsWith("a"); });
//写法二
//var selected = arr.Where((s) => s.StartsWith("a"));
//写法三
var selected = from s in arr where s.StartsWith("a") select s;
foreach (var VARIABLE in selected)
{
System.Console.WriteLine(VARIABLE);
}