Created
August 5, 2016 18:33
-
-
Save baywet/0c6e6307afbd5ed33126a4da01e59795 to your computer and use it in GitHub Desktop.
small sample to quickly replace the string names of variables when doing defensive programming exceptions by nameof operator usage
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
ArgumentNullException\("(\w+)"\); | |
ArgumentNullException(nameof($1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment