/// <summary> /// Initializes a new instance of the <see cref="TimerStart"/> class. /// </summary> /// <param name="timerStartToken">A <see cref="TimerStartToken"/>.</param> private TimerStart(TimerStartToken timerStartToken) { if (timerStartToken == null) { throw new ArgumentNullException("timerStartToken"); } this.timerStartToken = timerStartToken; }
/// <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 string. /// </summary> /// <param name="str">A string.</param> /// <returns>The <see cref="TimerStart"/> for the string, or <c>null</c> if the string is not a supported /// representation of a <see cref="TimerStart"/>.</returns> public static TimerStart FromString(string str) { TimerStartToken timerStartToken = TimerStartToken.FromString(str); if (timerStartToken == null) { return(null); } return(new TimerStart(timerStartToken)); }