Data Access, Properties, and Methods
- slide 9 : 29
Automatic Properties
In C# 3.0 it is possible to automatize the definition of trivial getter and setter properties
Class BankAccount with two automatic properties.
An equivalent BankAccount class without automatic properties.
A Client of class BankAccount.
Output from the Client program.
Automatic properties contribute to a C# 3.0
convenience layer
on top of already existing means of expressions.