Skip to content

Instantly share code, notes, and snippets.

@Stephanvs
Created May 17, 2013 20:06
Show Gist options
  • Save Stephanvs/5601666 to your computer and use it in GitHub Desktop.
Save Stephanvs/5601666 to your computer and use it in GitHub Desktop.
C# IsNull and IsNotNull Extension Methods
namespace System
{
public static class ObjectExtensions
{
public static bool IsNull(this object obj)
{
return obj == null;
}
public static bool IsNotNull(this object obj)
{
return obj != null;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment