public static FromTimerOptions ( |
||
options | A |
|
return |
public static TimerOptions FromTimerOptions(TimerOptions options)
{
return options != null ? new TimerOptions(options) : null;
}
/// <summary> /// Initializes a new instance of the <see cref="Timer"/> class. /// </summary> /// <param name="options">Configuration data for this timer.</param> public Timer(TimerOptions options) { if (options == null) { throw new ArgumentNullException("options"); } this.timerStart = null; this.options = TimerOptions.FromTimerOptions(options); this.UpdateHourglassTimer(); }