Answers for "c# get count from unknown list"

C#
1

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);
}
Posted by: Guest on May-18-2021

C# Answers by Framework

Browse Popular Code Answers by Language