Professional Documents
Culture Documents
Properties and Indexers: Programming in C#
Properties and Indexers: Programming in C#
Indexers
Programming in C#
tnngo2@gmail.com
Properties
Use of properties
Modifies private values
Validates private values
Performs required actions
Implements abstraction and encapsulation.
Types of Properties
Dirty Tracking
http://stackoverflow.com/questions/33469/caching-patterns-in-asp-net
Indexers
Indexers
are data members that allow access data within objects in a way
similar to accessing arrays.
fast access to the data within an object as they help in indexing the
data
called smart arrays
Implementation
https://gist.github.com/2398898