2
Reply

Difference between these two Property

Lalit Raghav

Lalit Raghav

Apr 22 2015 4:58 AM
391
First Class
 
class Example
{

public int ID
{
get;
set;
}
}
 
second Class
 
class Example
{
private int _id;
public int Id
{
get
{
return _id;
}
set
{
_id = value;
}
}


}
 
 
what will be difference Between Property

Answers (2)