Possible Duplicate:
What's the difference between encapsulating a private member as a property and defining a property without a private member?
I know the basic functionality of properties . But as i go through documentation in depth i see they are declared just with get set and without a variables .
what is the diffeence between these two
public int EmpCode
{
get { return _strEmpCode; }
set { _strEmpCode = value; }
}
and
public int EmpCode
{
get;
set;
}
Is it just a easier way of writing which got as .net frameworks got upgraded . Or is there any functional difference ?