Created
November 14, 2014 18:12
-
-
Save forki/7c8ef4c3126c953630fb 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
// old (pre C# 6.0) | |
if (customer == null) throw new ArgumentNullException("customer"); | |
// C# 6.0 | |
if (customer == null) throw new ArgumentNullException(nameof(customer)); // rename works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment