Last active
June 10, 2017 15:19
-
-
Save atsvetkov/54a7a79366dc6d3aabb4ae97af8733f8 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
void Foo(SomeReferenceType input) | |
{ | |
if (input == null) | |
{ | |
throw new ArgumentNullException("input"); | |
} | |
// if we made it here, input can be safely dereferenced and used | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment