Skip to content

Instantly share code, notes, and snippets.

@jeremydmiller
Created January 30, 2017 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremydmiller/1b431e6cf7bae816b12a2607c4cc20f6 to your computer and use it in GitHub Desktop.
Save jeremydmiller/1b431e6cf7bae816b12a2607c4cc20f6 to your computer and use it in GitHub Desktop.
protected Upsert(object document)
{
// The first time I checked for "Document == null", so it threw
// EVERY TIME
if (document == null) throw new ArgumentNullException(nameof(document));
Document = document;
}
@evilpilaf
Copy link

Ah, I see now why it happened :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment