Spaghetti Tom
Monday, August 22, 2011
.Any()
.Any() makes sure a List<T> has something in it.
if (myCollection != null && myCollection.Any())
{
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment