LINQ qanday ishlaydi?
Jasurbek Xasanboyev

class LINQQueryExample // dot-net.uz uchun
{
static void Main()
{
// Ma'lumotlarni to`plam shaklida shakllantirib olamiz
int[] scores = new int[] { 97, 92, 81, 60 };
// Query yozamiz
IEnumerable<int> scoreQuery =
from score in scores
where score > 80
select score;
// Query ma'lumotlaridan foydalanamiz
foreach (int i in scoreQuery)
{
Console.Write(i + " ");
}
}
}
// Output: 97 92 81Last updated
Was this helpful?