Skip to content

Instantly share code, notes, and snippets.

@AndrewVos
Created February 9, 2011 14:11
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 AndrewVos/818535 to your computer and use it in GitHub Desktop.
Save AndrewVos/818535 to your computer and use it in GitHub Desktop.
TheMayneExtensions
using System;
using System.Collections.Generic;
using System.Linq;
namespace TheMayneExtensions
{
public static class TheMayneExtensions
{
public static bool IfThereAreAny<T> (this IEnumerable<T> enumerable)
{
return enumerable.Any ();
}
public static bool IfThereIsOne (this object obj)
{
return obj != null;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment