Properties using C# in Dotnet

Sabarimahesh
Posted by Sabarimahesh under C# category on | Points: 40 | Views : 1415
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OmnEwiMSSuite_BO
{
public class EmpBO
{

#region private variables
private int _iId = 0;
private string _sFName = "";
private string _sLName = "";
#endregion private variables

public int Id
{
set
{
_iId = value;
}
get
{
return _iId;
}
}


public string FName
{
set
{
_sFName = value;
}
get
{
return _sFName;
}
}


public string LName
{
set
{
_sLName = value;
}
get
{
return _sLName;
}
}

}


}

Comments or Responses

Login to post response