Skip to content

Instantly share code, notes, and snippets.

@atsvetkov
Created June 10, 2017 13:42
Show Gist options
  • Save atsvetkov/1406149461425280df5e81ae0e724ed7 to your computer and use it in GitHub Desktop.
Save atsvetkov/1406149461425280df5e81ae0e724ed7 to your computer and use it in GitHub Desktop.
public static void NotNull<T>(T value, string name) where T: class
{
if (value == null)
{
throw new ArgumentNullException(name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment