diff options
author | Stephen A. Imhoff <clockwork-muse@outlook.com> | 2016-02-20 04:10:01 +0300 |
---|---|---|
committer | stephentoub <stoub@microsoft.com> | 2016-02-25 18:35:40 +0300 |
commit | 368fdfd86ee3a3bf1bca2a6c339ee590f3d6505d (patch) | |
tree | 7d96f6391126944d3ad7b77ad2e9c79c8e315d94 /Documentation/coding-guidelines | |
parent | 2017401b5d4992bbdd2ba847b339f57dbbfc8df3 (diff) |
Fix use of nameof with ArgumentException
Correct instances of new "ArgumentException(nameof(..." so names are in the correct parameter. Where possible, I chose the resource string I felt best fit the situation. Otherwise, I created a new entry (I'm assuming there's some extra work that needs to be done there, but don't know what it is offhand).
Diffstat (limited to 'Documentation/coding-guidelines')
-rw-r--r-- | Documentation/coding-guidelines/coding-style.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/coding-guidelines/coding-style.md b/Documentation/coding-guidelines/coding-style.md index dbd895c4fc..114b6b5fc0 100644 --- a/Documentation/coding-guidelines/coding-style.md +++ b/Documentation/coding-guidelines/coding-style.md @@ -55,7 +55,7 @@ namespace System.Collections.Generic public ObservableLinkedList(IEnumerable<T> items) { if (items == null) - throw new ArgumentException(nameof(items)); + throw new ArgumentNullException(nameof(items)); foreach (T item in items) { |