Esempio n. 1
0
        public LocalInstant Add(LocalInstant localInstant, long value)
        {
            // We don't try to work out the actual bounds, but we can easily tell
            // that we're out of range. Anything not in the range of an int is definitely broken.
            if (value < Int32.MinValue || value > Int32.MaxValue)
            {
                throw new ArgumentOutOfRangeException("value");
            }

            return(calculator.AddMonths(localInstant, (int)value));
        }