Skip to content

Instantly share code, notes, and snippets.

@danstuken
Created September 4, 2012 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danstuken/3621451 to your computer and use it in GitHub Desktop.
Save danstuken/3621451 to your computer and use it in GitHub Desktop.
None
public static class EntityLinqExtensions
{
public static bool None<TEntity>(this IEnumerable<TEntity> items, Func<TEntity, bool> predicate)
{
return !items.Any(predicate);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment