예제 #1
0
        /// <summary>
        /// Attempts to parse <see cref="RecurringTimer"/> from a string.
        /// </summary>
        /// <param name="input">The input string.</param>
        /// <param name="timer">Returns as the parsed timer.</param>
        /// <returns><c>true</c> if the timer was parsed successfully.</returns>
        public static bool TryParse(string input, out RecurringTimer timer)
        {
            timer = null;

            var parsed = new RecurringTimer();

            if (parsed.TryParse(input))
            {
                timer = parsed;
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
 /// <summary>
 /// Static constructor.
 /// </summary>
 static RecurringTimer()
 {
     RecurringTimer.Disabled = new RecurringTimer();
 }