Created
May 17, 2013 20:06
-
-
Save Stephanvs/5601666 to your computer and use it in GitHub Desktop.
C# IsNull and IsNotNull Extension Methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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