- Func<string, bool> filter = delegate (string s) { return s.Length == 5;};
- Func<string, string> extract = delegate (string s) { return s; };
- Func<string, string> project = delegate (string s) { return s.ToUpper(); };
- IEnumerable<string> query = names.Where(filter).OrderBy(extract).Select(project);
Linq中Func<> 的用法
最新推荐文章于 2023-11-17 10:35:30 发布