Created
January 30, 2017 21:23
-
-
Save jeremydmiller/1b431e6cf7bae816b12a2607c4cc20f6 to your computer and use it in GitHub Desktop.
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
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, I see now why it happened :P