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
What is multicast delegate in c# ?
Why var is used in c#?
What is writeline?
What is the namespace for the thread class?
Is int reference type c#?
Can you explicitly call a destructor?
What is the difference between internal and private in c#?
What is using keyword?
What are the 3 types of comments in c#?
Explain the difference between a Private Assembly and a Shared Assembly
What is difference between arraylist and list in c#?
Can we override main method in c#?
What is the difference between paramaterized constructor and copy constructor?
What are the 3 logical operators?
What do you mean by directing?