Lalit Raghav

Lalit Raghav

  • 629
  • 1.4k
  • 91.1k

Difference between these two Property

Apr 22 2015 4:58 AM
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)