Tag Archives: default properties

Make a default indexer property for a class in C#

Classes such as Dictionary and List provide a default indexer property that lets you access values using a syntax similar to the one you use to access values in an array. For example, the following code sets and then gets … Continue reading

Posted in classes, OOP | Tagged , , , , , , , , , , , , | Leave a comment