Blogger Template by Blogcrowds

Get and Set in C#

public class AdminDetails
{

private string _adminID;
private DateTime _registerDate;
private string _userName;
private string _email;

public string AdminID { get { return _adminID; } set { _adminID = value; } }
public DateTime RegisterDate { get { return _registerDate; } set { _registerDate = value; } }
public string UserName { get { return _userName; } set { _userName = value; } }
public string Email { get { return _email; } set { _email = value; } }

}

0 ความคิดเห็น:

บทความใหม่กว่า บทความที่เก่ากว่า หน้าแรก