Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# list length

//the using that need with list
using System;
using System.Collections.Generic;

//create List
List<int> list = new List<int>() {7,5,1,4 };
//set the length of the list to variable
int listLenght = list.Count;
//print length of the list
Console.WriteLine(listLenght);
 
PREVIOUS NEXT
Tagged: #list #length
ADD COMMENT
Topic
Name
6+4 =