Well, you can check .Count > 0 . But the best option would be to stop using ArrayList . Since you know about Any() and System.Linq , I assume that you are not using .NET 1.1; so use List<T> for some T and all your problems will be resolved. It has full use of LINQ-to-Objects, and it is a much better idea.
List<int> myInts = ... bool anyAtAll = myInts.Any(); bool anyEvens = myInts.Any(x => (x % 2) == 0);
source share