LinQ:並び替えと選択
VB.NET
' 並び替えと選択
Dim
query = From fruit In New String() {"apple", "orange", "pear", "banana", "strawberry", "blueberry"} _
Where
fruit.Length >= 5 _
Select A =
fruit.ToUpper(), B = fruit.ToLower() _
Order By A
■
C#
// 並び替えと選択
var
query = from fruit in strArray
where
fruit.Length >= 5
orderby
fruit.ToUpper()
select new { A
= fruit.ToUpper(), B = fruit.ToLower() };
■