"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Wednesday, April 2, 2014

GET SET in C#

Get:
The get { } implementation must include a return statement. It can access any member on the class.

Set:
The set { } implementation receives the implicit argument 'value', which is the value to which the property is assigned.