Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
small sample to quickly replace the string names of variables when doing defensive programming exceptions by nameof operator usage
ArgumentNullException\("(\w+)"\);
ArgumentNullException(nameof($1));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment