首页 > 其他 > 详细

LogEntry

时间:2014-07-19 20:33:47      阅读:440      评论:0      收藏:0      [点我收藏+]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace WindowsFormsApplication3.Model
{
    public class LogEntry
    {
        protected List<LogEntry> logEntries;
        public List<LogEntry> LogEntries { get { return logEntries; } }


        protected string checkoutstep;
        public string CheckoutStep {
            get { return checkoutstep; }
            set { checkoutstep = value; }
        }
        protected string message;
        public string Message {
            get { return message; }
            set { message = value; }
        }


        protected DateTime datetime;
        public LogEntry(string cstep, string messg) {
            logEntries = new List<LogEntry>();
            checkoutstep = cstep;
            this.message = messg;
            datetime = DateTime.Now;
        }
        public void LogWriteLine(string cstep, string messg) {
            logEntries.Add(new LogEntry(cstep, messg));
        }
    }
}

  

LogEntry,布布扣,bubuko.com

LogEntry

原文:http://www.cnblogs.com/rosizel/p/3849573.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!