Answer Posted / supraja
C# introduces a new concept known as Indexers which are
used for treating an object as an array. The indexers are
usually known as smart arrays in C# community. Defining a
C# indexer is much like defining properties. We can say
that an indexer is a member that enables an object to be
indexed in the same way as an array.
The following is syntax
<modifier> <return type> this [argument list]
{
get
{
// Get codes goes here
}
set
{
// Set codes goes here
}
}
Is This Answer Correct ? | 37 Yes | 1 No |
Post New Answer View All Answers
Does c# support multiple inheritance (mi)?
What is cookies c#?
What is JIT (just in time)? how it works?
how to implement a web service in .net
What is a dictionary in c#?
What is the difference between select and selectmany?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
How do you specify a custom attribute for the entire assembly (rather than for a class)?
Is arraylist faster than linkedlist?
What is multiple interface in c#?
What is int64 in c#?
What is difference between class and abstract class in c#?
Explain Direct CAST vs CType ?
What is a web service in c#?
How many types of delegates are there in c#?