- The get { } implementation must include a return statement.
SET
- The set { } implementation receives the implicit argument "value." This is the value to which the property is assigned.
Example example = new Example();
example.Number
= 10; // set { }
Console.WriteLine(example.Number);
// get { }
No comments:
Post a Comment