标签:for show enum order lsh erb img linq mic
Linq的操作对象都是集合。
public partial class Form1 : Form { public Form1() { InitializeComponent(); int[] scores = { 90, 71, 82, 93, 75, 82 }; IEnumerable<int> scoreQuery = from score in scores where score > 80 orderby score descending select score; foreach (int x in scoreQuery) { lblShow.Text += x + "分" + "\n"; } } }
标签:for show enum order lsh erb img linq mic
原文地址:https://www.cnblogs.com/HuaiBlog/p/14816407.html