/// <summary> /// Initializes a new instance of the <see cref="TimerStart"/> class. /// </summary> /// <param name="timerStartInfo">A <see cref="TimerStartInfo"/>.</param> private TimerStart(TimerStartInfo timerStartInfo) { if (timerStartInfo == null) { throw new ArgumentNullException("timerStartInfo"); } this.timerStartToken = timerStartInfo.TimerStartToken; }
/// <summary> /// Returns a <see cref="TimerStart"/> for a <see cref="TimerStartInfo"/>. /// </summary> /// <param name="timerStartInfo">A <see cref="TimerStartInfo"/>.</param> /// <returns>The <see cref="TimerStart"/> for the <see cref="TimerStartInfo"/>.</returns> public static TimerStart FromTimerStartInfo(TimerStartInfo timerStartInfo) { if (timerStartInfo == null) { return null; } return new TimerStart(timerStartInfo); }