FromTimerOptionsInfo() публичный статический Метод

Returns a TimerOptions for the specified TimerOptionsInfo, or null if the specified TimerOptionsInfo is null.
public static FromTimerOptionsInfo ( TimerOptionsInfo info ) : TimerOptions
info Hourglass.Serialization.TimerOptionsInfo A .
Результат TimerOptions
Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Timer"/> class.
        /// </summary>
        /// <param name="timerInfo">A <see cref="TimerInfo"/> representing the state of the <see
        /// cref="Timer"/>.</param>
        public Timer(TimerInfo timerInfo)
            : base(timerInfo)
        {
            this.timerStart = TimerStart.FromTimerStartInfo(timerInfo.TimerStart);
            this.options    = TimerOptions.FromTimerOptionsInfo(timerInfo.Options) ?? new TimerOptions();

            this.UpdateHourglassTimer();
        }