Danasegarane Arunachalam replied to Ali Khan on 28-Feb-13 08:50 PM
Any() is part of System.Linq.IEnumerable namespace and .count() is part of System.Collections.ObjectModel.Collection namespace.
.Any : check for existence of a object inside a collection . If there any no objects it returns false and contains any object returns return true.
count() : Gets the number of items in the list.
If you want to check value exist then use .Any and want the count then use the .Count method.