Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to list elements of an array C#

int[] numarray = {1, 2, 3 ,4};
foreach(int num in numarray){
  /* You can do a lot of things with the elements, 
  I am going to just print them to the console. */
  System.Console.WriteLine(num);
}
 
PREVIOUS NEXT
Tagged: #list #elements #array
ADD COMMENT
Topic
Name
5+2 =