usermessinfo.cs

来自「电子商务网站转载而来[展开所有目录] [建议增加分类] (重要) 」· CS 代码 · 共 55 行

CS
55
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class UserMessInfo
    {
        public int txtId;
        public string txtName = string.Empty;
        public string txtContent = string.Empty;
        public string txtDateTime = string.Empty;
        public UserMessInfo() { }
        public UserMessInfo(int nId,string nName, string nContent, string nDateTime)
        {
            this.txtId = nId;
            this.txtName = nName;
            this.txtContent = nContent;
            this.txtDateTime = nDateTime;
        
        }
        public UserMessInfo(string nName, string nContent, string nDateTime)
        {
            this.txtName = nName;
            this.txtContent = nContent;
            this.txtDateTime = nDateTime;

        }
        public int Id {

            get { return txtId; }
            set { txtId = value; }
        
        }
        public string Name {

            get { return txtName; }
            set { txtName = value; }
        
        }
        public string Content {

            get { return txtContent; }
            set { txtContent = value; }
        
        }
        public string DateTim {

            get { return txtDateTime; }
            set { txtDateTime = value; }
        
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?