Fix parameter name in the exception constructor.
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 7 Dec 2011 17:19:37 +0000 (15:19 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 7 Dec 2011 17:19:37 +0000 (15:19 -0200)
mcs/class/corlib/System.Threading/Timer.cs

index 1c3c1d5c40bfbbe0a03a7e4a16c12e29be2c340f..917c66729ae4a6a5aa1cbdcb06f40bcfb29ed1d8 100644 (file)
@@ -128,10 +128,10 @@ namespace System.Threading
                bool Change (long dueTime, long period, bool first)
                {
                        if (dueTime > MaxValue)
-                               throw new ArgumentOutOfRangeException ("Due time too large");
+                               throw new ArgumentOutOfRangeException ("dueTime", "Due time too large");
 
                        if (period > MaxValue)
-                               throw new ArgumentOutOfRangeException ("Period too large");
+                               throw new ArgumentOutOfRangeException ("period", "Period too large");
 
                        // Timeout.Infinite == -1, so this accept everything greater than -1
                        if (dueTime < Timeout.Infinite)