OpenMetaverse.ReaderWriterLockSlim.CheckTimeout C# (CSharp) Method

CheckTimeout() static private method

static private CheckTimeout ( System.TimeSpan timeout ) : int
timeout System.TimeSpan
return int
        static int CheckTimeout(TimeSpan timeout)
        {
            try
            {
                return checked((int)timeout.TotalMilliseconds);
            }
            catch (System.OverflowException)
            {
                throw new ArgumentOutOfRangeException("timeout");
            }
        }