2009-11-08 3 views

Répondre

23

Essayez ceci:

Int32 length = yourList.Count; 

En C#, les tableaux ont une propriété Length, quoi que ce soit la mise en œuvre IList<T> (y compris List<T>) aura une propriété Count.

1

Exemple:

Liste A = new List(); int Longueur_A = A.Count;

Questions connexes