/// <summary> /// 增加類別的方法 /// </summary> /// <returns></returns> public ActionResult Process2() { string stationName = "Finsbury Park 12345 我是誰??"; // Foo source = new Foo() { Name = "Fred" }; var result = from f in source where f.Name == "Fred" select f.Name; //在此單純示範可以自行增加Where或Select var result2 = source.Where(f => f.Name == "Fred").Select(f => f.Name); return Content(stationName.Backwards()); }