From a5f5230888d7f1fbd32512ebd1fbe7ae672fbe04 Mon Sep 17 00:00:00 2001 From: Bruce Bowyer-Smyth Date: Wed, 13 Jan 2016 17:17:59 +1000 Subject: Provide paramName for ArgumentOutOfRangeException within IndexOfAny --- src/System.Private.CoreLib/src/System/String.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3