準備
(なし)
デザイン
1. フォーム (Form1) にボタン (button1) を配置します。
2. フォーム (Form1) にリストボックス (listBox1) を配置します。
サンプルコード (C#)
// 名前空間の追加
using System.Collections;
// コード
private void button1_Click(object sender, EventArgs e)
{
int[] v = { 1000, 1500, 980, 990, 1200 };
IEnumerable iPrices = from n in v
where n >= 1000
select n;
foreach (int price in iPrices)
{
listBox1.Items.Add(price);
}
}
解説
配列データから LINQ を通じてデータを取得します。取得したデータは IEnumerable 型に代入してコレクションを作成します。
結果

動作確認環境
Visual Studio 2015 Professional (C# 6.0)