What is an INDEXER in c# ?
Posted by Chvrsri on 3/22/2011 | Category: C# Interview questions | Views: 2873 | Points: 40
Generally in C# Indexers are generally known as Smart Arrays.Defining a c# indexer is almost equal to defining properties.An indexer is a member which enables an object to be indexed in the same way as an array.
private string info = new string;
public string this [int index]
info[index] = value;
As shown above defining an indexer is much likely defining properties.
Asked In: Many Interviews