Aslam-0-Alaikum
What is the real use of Indexers in c#.....?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Mar 16, 2011, 4:25 PM
VulpesPosted Mar 16, 2011, 4:58 AM
Where the containing class is some kind of collection, the indexer allows you to access individual items of the collection using an index. The index need not be integer but could, for example, be a string if you wanted to access an item by its name rather than its position.