Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen A. Imhoff <clockwork-muse@outlook.com>2016-02-20 04:10:01 +0300
committerstephentoub <stoub@microsoft.com>2016-02-25 18:35:40 +0300
commit368fdfd86ee3a3bf1bca2a6c339ee590f3d6505d (patch)
tree7d96f6391126944d3ad7b77ad2e9c79c8e315d94 /Documentation/coding-guidelines
parent2017401b5d4992bbdd2ba847b339f57dbbfc8df3 (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.md2
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)
{