Created
December 18, 2014 10:40
-
-
Save chitoku-k/2c9354ee1cb23b1b82f4 to your computer and use it in GitHub Desktop.
ObjectExtensions
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
using System; | |
public static class ObjectExtensions | |
{ | |
public static void Validate(this object o, string paramName) | |
{ | |
if (o == null) | |
{ | |
throw new ArgumentNullException(paramName); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment