diff options
author | Stephen Toub <stoub@microsoft.com> | 2019-07-09 20:18:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-09 20:18:11 -0400 |
commit | 27790ab2dbee25d2e9c6fc41863aa7e983552a3f (patch) | |
tree | 03dfd4b332f78f909c9d40345f19610af8f05ec6 | |
parent | 48ff0937552e540f21835391b693daf47ffabece (diff) | |
download | coreclr-27790ab2dbee25d2e9c6fc41863aa7e983552a3f.tar.gz coreclr-27790ab2dbee25d2e9c6fc41863aa7e983552a3f.tar.bz2 coreclr-27790ab2dbee25d2e9c6fc41863aa7e983552a3f.zip |
Fix Timer argument exception parameter names (#25617)
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Threading/Timer.cs | 10 |
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)); } |