2
Reply

What is indexer in c#?

Ayush Gupta

Ayush Gupta

Sep 10
712
0
Reply

    It allows an instance of the class to behave as an array. We can add a collection and access it through the index.class IndexerExample {// define indexer here }//access indexerIndexerExample ie = new IndexerExample();// Inserting values in ix[]ie[0] = "C";ie[1] = "SHARP";iE[2] = "CORNER";

    I also wonder the same question