Skip to content

Instantly share code, notes, and snippets.

@chitoku-k
Created December 18, 2014 10:40
Show Gist options
  • Save chitoku-k/2c9354ee1cb23b1b82f4 to your computer and use it in GitHub Desktop.
Save chitoku-k/2c9354ee1cb23b1b82f4 to your computer and use it in GitHub Desktop.
ObjectExtensions
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