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