Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get count from unknown list

using System.Collections;

List<int> list = new List<int>(Enumerable.Range(0, 100));

ICollection collection = list as ICollection;
if(collection != null)
{
  Console.WriteLine(collection.Count);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #unknown #list
ADD COMMENT
Topic
Name
9+7 =