Browse Source

Fix parameter name in exception.

Jon Skeet 10 years ago
parent
commit
4deea8c231
1 changed files with 1 additions and 1 deletions
  1. 1 1
      csharp/src/Google.Protobuf/Collections/MapField.cs

+ 1 - 1
csharp/src/Google.Protobuf/Collections/MapField.cs

@@ -737,7 +737,7 @@ namespace Google.Protobuf.Collections
             {
             {
                 if (index < 0)
                 if (index < 0)
                 {
                 {
-                    throw new ArgumentOutOfRangeException("arrayIndex");
+                    throw new ArgumentOutOfRangeException("index");
                 }
                 }
                 if (index + Count >= array.Length)
                 if (index + Count >= array.Length)
                 {
                 {