Explorar o código

Fix parameter name in exception.

Jon Skeet %!s(int64=10) %!d(string=hai) anos
pai
achega
4deea8c231
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
                 {
                 {