Page 32 : 45
Object-oriented Programming in C#
Data Access and Operations
* Accessing Data in Objects
Indirect data access
Overview of data access in C#
* Properties
Properties in C#
Properties: Class Point with polar coordinates
Automatic Properties
Object Initialization via Properties
Summary of properties in C#
* Indexers
Indexers in C#
Associative Arrays
Summary of indexers in C#
* Methods
Methods in C#
Local variables in methods
Parameters
Value Parameters
Passing references as value parameters
Passing struct values as value parameters
Reference Parameters
Output Parameters
Use of ref and out parameters in OOP
Parameter Arrays
Extension Methods
Methods versus Properties versus Indexers
* Overloaded Operators
Why operator overloading?
Overloadable operators in C#
An example of overloaded operators: Interval
Some details of operator overloading
* Delegates
Delegates in C#
Delegates that contain instance methods
Multivalued delegates
Lambda Expressions
* Events
Events
Events in C#
Examples of events
* Patterns and Techniques
The observer design pattern
An Observer Example
Observer with Delegates and Events
Observer Example with Delegates and Events
Delegates