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 |