summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2019-07-09 20:18:11 -0400
committerGitHub <noreply@github.com>2019-07-09 20:18:11 -0400
commit27790ab2dbee25d2e9c6fc41863aa7e983552a3f (patch)
tree03dfd4b332f78f909c9d40345f19610af8f05ec6 /src/System.Private.CoreLib
parent48ff0937552e540f21835391b693daf47ffabece (diff)
downloadcoreclr-27790ab2dbee25d2e9c6fc41863aa7e983552a3f.tar.gz
coreclr-27790ab2dbee25d2e9c6fc41863aa7e983552a3f.tar.bz2
coreclr-27790ab2dbee25d2e9c6fc41863aa7e983552a3f.zip
Fix Timer argument exception parameter names (#25617)
Diffstat (limited to 'src/System.Private.CoreLib')
-rw-r--r--src/System.Private.CoreLib/shared/System/Threading/Timer.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Threading/Timer.cs b/src/System.Private.CoreLib/shared/System/Threading/Timer.cs
index dd21c42484..7161f3d219 100644
--- a/src/System.Private.CoreLib/shared/System/Threading/Timer.cs
+++ b/src/System.Private.CoreLib/shared/System/Threading/Timer.cs
@@ -735,15 +735,15 @@ namespace System.Threading
{
long dueTm = (long)dueTime.TotalMilliseconds;
if (dueTm < -1)
- throw new ArgumentOutOfRangeException(nameof(dueTm), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
+ throw new ArgumentOutOfRangeException(nameof(dueTime), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
if (dueTm > MAX_SUPPORTED_TIMEOUT)
- throw new ArgumentOutOfRangeException(nameof(dueTm), SR.ArgumentOutOfRange_TimeoutTooLarge);
+ throw new ArgumentOutOfRangeException(nameof(dueTime), SR.ArgumentOutOfRange_TimeoutTooLarge);
long periodTm = (long)period.TotalMilliseconds;
if (periodTm < -1)
- throw new ArgumentOutOfRangeException(nameof(periodTm), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
+ throw new ArgumentOutOfRangeException(nameof(period), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
if (periodTm > MAX_SUPPORTED_TIMEOUT)
- throw new ArgumentOutOfRangeException(nameof(periodTm), SR.ArgumentOutOfRange_PeriodTooLarge);
+ throw new ArgumentOutOfRangeException(nameof(period), SR.ArgumentOutOfRange_PeriodTooLarge);
TimerSetup(callback, state, (uint)dueTm, (uint)periodTm);
}
@@ -790,7 +790,7 @@ namespace System.Threading
bool flowExecutionContext = true)
{
if (callback == null)
- throw new ArgumentNullException(nameof(TimerCallback));
+ throw new ArgumentNullException(nameof(callback));
_timer = new TimerHolder(new TimerQueueTimer(callback, state, dueTime, period, flowExecutionContext));
}