Created
May 8, 2020 21:06
-
-
Save enisn/09964795a1e9df29986a92182996820e to your computer and use it in GitHub Desktop.
NullCheck - Sample 1
This file contains hidden or 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
public void DoSomething(string message) | |
{ | |
if(message == null) | |
throw new ArgumentNullException(); | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment