Whose wrong???...my understanding, or.......Microsoft's Design???

Posted by CGN007 under C# on 6/12/2012 | Points: 10 | Views : 1735 | Status : [Member] | Replies : 0
In System.Timers.Timer class
'Interval' property accepts a double which specifies the interval between two 'Elapsed' events.
But if we set a value greater that an int to the Interval(>bigger that 2,147,483,647) and call Start() it throws a exception..!!!
This exception is documented in the MSDN help:http://msdn.microsoft.com/en-us/library/system.timers.timer.interval.aspx
Have a look at this also...

Actually, the type of System.Timers.Timer.Interval is a double.
I wonder why its double?, although it cannot be greater than Int32.MaxValue...!!!

Please Share your thoughts...!!!


(No response found.)

Login to post response