Answers for "how to iterate tthrough a list in c#"

C#
1

how to iterate tthrough a list in c#

static void Main()
{
  
  int[] someRandomList = new int[] {1, 2, 3, 4, 5};
  
  foreach (int number in someRandomList) 
  {
    Console.WriteLine(number);
  }
}
Posted by: Guest on March-25-2021

Code answers related to "how to iterate tthrough a list in c#"

C# Answers by Framework

Browse Popular Code Answers by Language