ToTimerOptionsInfo() public method

Returns the representation of the TimerOptions used for XML serialization.
public ToTimerOptionsInfo ( ) : TimerOptionsInfo
return Hourglass.Serialization.TimerOptionsInfo
Exemplo n.º 1
0
        /// <summary>
        /// Returns a <see cref="TimerOptionsInfo"/> for the specified <see cref="TimerOptions"/>.
        /// </summary>
        /// <param name="options">A <see cref="TimerOptions"/>.</param>
        /// <returns>A <see cref="TimerOptionsInfo"/> for the specified <see cref="TimerOptions"/>.</returns>
        public static TimerOptionsInfo FromTimerOptions(TimerOptions options)
        {
            if (options == null)
            {
                return null;
            }

            return options.ToTimerOptionsInfo();
        }