源码分析。比较菜的问题
在以下代码中,public UserDetailsInfo(...){...} 这段代码的用意不太明白,请指点
namespace WeYyzyq.Model
{
[Serializable]
public class UserDetailsInfo
{
private int user_id;
private string user_name;
private string user_email;
private DateTime user_adddate;
private string user_ip;
public UserDetailsInfo(int user_id, string user_name, string user_email, DateTime user_adddate,
string user_ip)
{
this.user_id = user_id;
this.user_name = user_name;
this.user_email = user_email;
this.user_adddate = user_adddate;
this.user_ip = user_ip;
}
/// <summary>
/// 用户ID
/// </summary>
public int User_Id
{
get { return user_id; }
set { user_id = value; }
}
/// <summary>
/// 用户名
/// </summary>
public string User_Name
{
get { return user_name; }
set { user_name = value; }