Automatic properties feature in .Net c# 3.0
By Mash B
Automatic properties are useful only as a means of doing less typing and keeping your code short and
precise.
The declaration for this class uses a new C# 3.0 feature called automatic
properties
that is designed to help you easily declare properties in a concise
style
Ex:
class Employee
{
public string EmpID { get; set; }
public string EmpName { get; set; }
public string City { get; set; }
}
Automatic properties feature in .Net c# 3.0 (446 Views)