What is the difference between the implementation of
Class cl1
{
public int var{get;set;}
}
and
Class cl1
{
public int var;
}
I mean, both are implemented like this -
void Main()
{
cl1 obj = new cl1();
obj.var = 25;
int k = obj.var;
}
and if there is no difference, then why do I see the 2nd implementation so common in Library Assemblies??