diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-01-13 18:39:07 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-01-13 18:39:07 +0300 |
commit | d86c7e7f5b1fbfd390b7227d3d8be699345a3fd4 (patch) | |
tree | 9931426bc711c4a08b614da6206e7a32a2323dba | |
parent | 6f8edab90980ad32ec0b1da7d9f0847312df662d (diff) | |
parent | a5f5230888d7f1fbd32512ebd1fbe7ae672fbe04 (diff) |
Merge pull request #636 from bbowyersmyth/StringExceptionParamName
Provide paramName for ArgumentOutOfRangeException within IndexOfAny
-rw-r--r-- | src/System.Private.CoreLib/src/System/String.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/src/System/String.cs b/src/System.Private.CoreLib/src/System/String.cs index b8c0a4825..e6245e151 100644 --- a/src/System.Private.CoreLib/src/System/String.cs +++ b/src/System.Private.CoreLib/src/System/String.cs @@ -2034,7 +2034,7 @@ namespace System throw new ArgumentNullException("anyOf"); if (startIndex < 0 || startIndex > Length) - throw new ArgumentOutOfRangeException(); + throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_Index); if (count < 0 || count > Length - startIndex) throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_Count); |