Answers for "c# where"

C#
1

c# where

int[] numbers = { 0, 30, 20, 15, 90, 85, 40, 75 };

IEnumerable<int> query =
    numbers.Where((number, index) => number = index * 10);

foreach (int number in query)
{
    Console.WriteLine(number);
}
/*
 This code produces the following output:

 0
 20
 15
 40
*/
Posted by: Guest on April-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language