Showing posts with label Properties. Show all posts
Showing posts with label Properties. Show all posts

Saturday, January 5, 2008

Properties

1. Provides encapsulation, enabling code maintainability and bug fixing.
2. Data binding classes in .net supports properties but not variables.
3. Adding multi-threaded support is much easier.
4. Can be extended in interfaces.
5. One of the accessors can be have a different visibility.
6. Supports of parameterized properties (indexers).
7. Changing public data members to Properties at a later stage will break binary compatibility. So it’s better to start right.