using System.Collections; List list = new List(Enumerable.Range(0, 100)); ICollection collection = list as ICollection; if(collection != null) { Console.WriteLine(collection.Count); }