Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to get the size of an array in c#

int[] numbers =  {66,87,34,23,27,4};
int count = 0;
foreach(int x in numbers){
  count++;
}
Console.WriteLine(count);
 
PREVIOUS NEXT
Tagged: #size #array
ADD COMMENT
Topic
Name
4+4 =