[Solved] calculate the sum about Hashtable C# [closed]
[ad_1] Given your comments, it sounds like you want the total count of items in each element of the ArrayList. You can use LINQ for this, although you’ll have to cast each element to a type since you aren’t using the preferred List<T> type. return Allfile.Cast<Hashtable>().Sum(c => c.Count); You should, however, as I commented, switch … Read more