where indexer is used ?

where indexer is used ?

indexer member, which itself contains a get accessor and a set accessor. These accessors are implicitly used when you assign the class instance elements in the same way as you can assign elements in an array. The indexer provides a level of indirection where you can insert bounds-checking, and in this way you can improve reliability and simplicity with indexers.

Date:2013-10-10 00:00:00

Post Your Answers

User Email:

User Name:

Related C Links

C interview questions and answers for experienced and fresher