Beispiel #1
0
        /// <summary>
        /// Creates the specified log.
        /// </summary>
        /// <param name="log">The log.</param>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        public static LogOf <T> Create(DateTime timeStamp, T item)
        {
            LogOf <T> logOfitem = new LogOf <T>();

            logOfitem.TimeStamp = timeStamp;
            logOfitem.Item      = item;

            return(logOfitem);
        }
Beispiel #2
0
        /// <summary>
        /// Creates the specified log.
        /// </summary>
        /// <param name="log">The log.</param>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        public static LogOf <T> Create(Log log, T item)
        {
            LogOf <T> logOfitem = new LogOf <T>();

            logOfitem.TimeStamp = log.Timestamp;
            logOfitem.Item      = item;

            return(logOfitem);
        }